Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit b2ba7e5

Browse files
fix: add delay to mock session creation in testRetryWithNoSessionCreationWaitTime to fix flakiness
1 parent 5eb9228 commit b2ba7e5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

google-cloud-spanner/src/test/java/com/google/cloud/spanner/MultiplexedSessionDatabaseClientMockServerTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ public void testRetryWithTheDatabaseNotFoundExceptionWithSessionCreationWaitTime
337337
@Test
338338
public void testRetryWithNoSessionCreationWaitTime() {
339339
mockSpanner.setCreateSessionExecutionTime(
340-
SimulatedExecutionTime.ofExceptions(
340+
SimulatedExecutionTime.ofMinimumAndRandomTimeAndExceptions(
341+
100,
342+
0,
341343
Collections.singletonList(
342344
Status.DEADLINE_EXCEEDED
343345
.withDescription(

0 commit comments

Comments
 (0)