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

Commit 07259cd

Browse files
committed
fix flakiness
1 parent 3235d25 commit 07259cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • google-cloud-spanner/src/test/java/com/google/cloud/spanner

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ public void tearDown() {
261261

262262
@Test
263263
public void singleUseNonRetryableErrorOnNext() {
264+
mockSpanner.addException(FAILED_PRECONDITION);
264265
try (ResultSet rs = client.singleUse().executeQuery(SELECT1)) {
265-
mockSpanner.addException(FAILED_PRECONDITION);
266266
SpannerException e = assertThrows(SpannerException.class, () -> rs.next());
267267
assertEquals(ErrorCode.FAILED_PRECONDITION, e.getErrorCode());
268268
}

0 commit comments

Comments
 (0)