@@ -61,33 +61,17 @@ public void clearRequests() {
6161 @ Test
6262 public void testAsyncRunner_doesNotReturnCommitTimestampBeforeCommit () {
6363 AsyncRunner runner = client ().runAsync ();
64- if (isMultiplexedSessionsEnabledForRW ()) {
65- ExecutionException e =
66- assertThrows (ExecutionException .class , () -> runner .getCommitTimestamp ().get ());
67- Throwable cause = e .getCause ();
68- assertTrue (cause instanceof IllegalStateException );
69- assertTrue (cause .getMessage ().contains ("runAsync() has not yet been called" ));
70- } else {
71- IllegalStateException e =
72- assertThrows (IllegalStateException .class , () -> runner .getCommitTimestamp ());
73- assertTrue (e .getMessage ().contains ("runAsync() has not yet been called" ));
74- }
64+ IllegalStateException e =
65+ assertThrows (IllegalStateException .class , () -> runner .getCommitTimestamp ());
66+ assertTrue (e .getMessage ().contains ("runAsync() has not yet been called" ));
7567 }
7668
7769 @ Test
7870 public void testAsyncRunner_doesNotReturnCommitResponseBeforeCommit () {
7971 AsyncRunner runner = client ().runAsync ();
80- if (isMultiplexedSessionsEnabledForRW ()) {
81- ExecutionException e =
82- assertThrows (ExecutionException .class , () -> runner .getCommitResponse ().get ());
83- Throwable cause = e .getCause ();
84- assertTrue (cause instanceof IllegalStateException );
85- assertTrue (cause .getMessage ().contains ("runAsync() has not yet been called" ));
86- } else {
87- IllegalStateException e =
88- assertThrows (IllegalStateException .class , () -> runner .getCommitResponse ());
89- assertTrue (e .getMessage ().contains ("runAsync() has not yet been called" ));
90- }
72+ IllegalStateException e =
73+ assertThrows (IllegalStateException .class , () -> runner .getCommitResponse ());
74+ assertTrue (e .getMessage ().contains ("runAsync() has not yet been called" ));
9175 }
9276
9377 @ Test
@@ -524,8 +508,6 @@ public void asyncRunnerWaitsUntilAsyncBatchUpdateHasFinished() throws Exception
524508
525509 @ Test
526510 public void closeTransactionBeforeEndOfAsyncQuery () throws Exception {
527- // TODO(sriharshach): Fix this unittest
528- assumeFalse ("Skipping for mux" , isMultiplexedSessionsEnabledForRW ());
529511 final BlockingQueue <String > results = new SynchronousQueue <>();
530512 final SettableApiFuture <Boolean > finished = SettableApiFuture .create ();
531513 DatabaseClientImpl clientImpl = (DatabaseClientImpl ) client ();
0 commit comments