Skip to content

Commit 91f3a33

Browse files
committed
pr comment
1 parent 2b3a7c2 commit 91f3a33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

google-cloud-logging/src/test/java/com/google/cloud/logging/LoggingHandlerTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import static org.junit.Assert.assertEquals;
2020
import static org.junit.Assert.assertNotNull;
2121
import static org.junit.Assert.assertTrue;
22+
import static org.junit.Assert.assertFalse;
2223

2324
import com.google.api.gax.core.ApiFutures;
2425
import com.google.api.gax.core.SettableApiFuture;
@@ -408,12 +409,13 @@ public void run() {
408409
flushWaiter.start();
409410

410411
// flushWaiter should be waiting for mockRpc to complete.
411-
flushWaiter.join(100);
412+
flushWaiter.join(1000);
412413
assertTrue(flushWaiter.isAlive());
413414

414415
// With the RPC completed, flush should return, and the thread should terminate.
415416
mockRpc.set(null);
416-
flushWaiter.join();
417+
flushWaiter.join(1000);
418+
assertFalse(flushWaiter.isAlive());
417419
}
418420

419421
@Test

0 commit comments

Comments
 (0)