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

Commit d1c13d8

Browse files
committed
fix potential flaky test
1 parent 75af676 commit d1c13d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ public Void call() {
16231623
executor.shutdown();
16241624

16251625
session1.close();
1626-
assertThat(record.getMetrics()).containsEntry(MetricRegistryConstants.GET_SESSION_TIMEOUT, 1L);
1626+
assertThat(record.getMetrics().get(MetricRegistryConstants.GET_SESSION_TIMEOUT).longValue()).isAtLeast(1L);
16271627
assertThat(record.getMetrics()).containsEntry(MetricRegistryConstants.IN_USE_SESSIONS, 0L);
16281628
assertThat(record.getMetrics()).containsEntry(MetricRegistryConstants.MAX_IN_USE_SESSIONS, 2L);
16291629
}

0 commit comments

Comments
 (0)