Skip to content

Commit 1f49e7f

Browse files
fix(spanner): Fixed unit test for multiplexed session.
1 parent fb6d0bf commit 1f49e7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,9 @@ public void write() throws InterruptedException {
12881288

12891289
@Test
12901290
public void writeAtLeastOnce() throws InterruptedException {
1291+
assumeFalse(
1292+
"Multiplexed session do not throw a SessionNotFound errors. ",
1293+
spanner.getOptions().getSessionPoolOptions().getUseMultiplexedSession());
12911294
assertThrowsSessionNotFoundIfShouldFail(
12921295
() ->
12931296
client.writeAtLeastOnce(

0 commit comments

Comments
 (0)