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

Commit a04598a

Browse files
committed
.
1 parent 5fdbe5b commit a04598a

File tree

1 file changed

+2
-1
lines changed
  • google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2

1 file changed

+2
-1
lines changed

google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriterTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,7 @@ public void testShutdownWithConnectionError() throws Exception {
10371037
ApiFuture<AppendRowsResponse> appendFuture1 = sendTestMessage(writer, new String[] {"A"});
10381038
ApiFuture<AppendRowsResponse> appendFuture2 = sendTestMessage(writer, new String[] {"B"});
10391039
Thread.sleep(5000L);
1040+
// Move the needle for responses to be sent.
10401041
fakeExecutor.advanceTime(Duration.ofSeconds(20));
10411042
// Shutdown writer immediately and there will be some error happened when flushing the queue.
10421043
writer.shutdown();
@@ -1045,7 +1046,7 @@ public void testShutdownWithConnectionError() throws Exception {
10451046
appendFuture2.get();
10461047
fail("Should fail with exception");
10471048
} catch (java.util.concurrent.ExecutionException e) {
1048-
LOG.info("got: " + e.toString());
1049+
assertEquals("Request aborted due to previous failures", e.getCause().getMessage());
10491050
}
10501051
}
10511052
}

0 commit comments

Comments
 (0)