You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/FakeBigQueryWrite.java
Copy file name to clipboardExpand all lines: google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/FakeBigQueryWriteImpl.java
Copy file name to clipboardExpand all lines: google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriterTest.java
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -452,11 +452,11 @@ public void run() {
452
452
assertEquals(true, t.isAlive());
453
453
assertEquals(false, appendFuture1.isDone());
454
454
// Wait is necessary for response to be scheduled before timer is advanced.
455
-
Thread.sleep(5000L);
455
+
testBigQueryWrite.waitForResponseScheduled();
456
456
fakeExecutor.advanceTime(Duration.ofSeconds(10));
457
457
// The first requests gets back while the second one is blocked.
0 commit comments