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

Commit 42470d5

Browse files
authored
. (#253)
1 parent d50a4ce commit 42470d5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,13 @@ public void testFlowControlBehaviorException() throws Exception {
432432
appendFuture2.get();
433433
Assert.fail("This should fail");
434434
} catch (Exception e) {
435-
LOG.info("ControlFlow test exception: " + e.toString());
436-
assertEquals("The maximum number of batch elements: 1 have been reached.", e.getMessage());
435+
if (!e.getMessage().equals("The maximum number of batch elements: 1 have been reached.")) {
436+
LOG.info("More error info:");
437+
e.printStackTrace();
438+
}
439+
assertEquals(
440+
"java.util.concurrent.ExecutionException: The maximum number of batch elements: 1 have been reached.",
441+
e.toString());
437442
}
438443
assertEquals(1L, appendFuture1.get().getOffset());
439444
}

0 commit comments

Comments
 (0)