File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
google-cloud-logging/src/test/java/com/google/cloud/logging Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1919import static org .junit .Assert .assertEquals ;
2020import static org .junit .Assert .assertNotNull ;
2121import static org .junit .Assert .assertTrue ;
22+ import static org .junit .Assert .assertFalse ;
2223
2324import com .google .api .gax .core .ApiFutures ;
2425import 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
You can’t perform that action at this time.
0 commit comments