From 138c58f99a0e7946e93b1e1da18d140430f626d2 Mon Sep 17 00:00:00 2001 From: Sri Harsha CH Date: Mon, 23 Dec 2024 15:31:56 +0000 Subject: [PATCH] chore(spanner): skip AsyncRunner tests --- .../test/java/com/google/cloud/spanner/AsyncRunnerTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/AsyncRunnerTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/AsyncRunnerTest.java index baf52f7f6e..84077b5577 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/AsyncRunnerTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/AsyncRunnerTest.java @@ -20,6 +20,7 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; import static org.junit.Assert.assertTrue; +import static org.junit.Assume.assumeFalse; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; @@ -59,6 +60,7 @@ public void clearRequests() { @Test public void testAsyncRunner_doesNotReturnCommitTimestampBeforeCommit() { + assumeFalse("Skipping for mux", isMultiplexedSessionsEnabledForRW()); AsyncRunner runner = client().runAsync(); IllegalStateException e = assertThrows(IllegalStateException.class, () -> runner.getCommitTimestamp()); @@ -67,6 +69,7 @@ public void testAsyncRunner_doesNotReturnCommitTimestampBeforeCommit() { @Test public void testAsyncRunner_doesNotReturnCommitResponseBeforeCommit() { + assumeFalse("Skipping for mux", isMultiplexedSessionsEnabledForRW()); AsyncRunner runner = client().runAsync(); IllegalStateException e = assertThrows(IllegalStateException.class, () -> runner.getCommitResponse());