Elffuss BraidHub

kikocis/java-driver public

Add longer wait in closeDuringClusterInitTest.

The intent of this test is to ensure that there is not a Deadlock on
Cluster.close().  The time taken to close can be affected by local
system performance.  Since CI runs on somewhat constrained systems
increasing the timeout to 5 seconds seems reasonable.
Changeset112b6d6f2201132636c1bc49b664a031fcd983031cb162a103129258365a4a84
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-10-27 14:49 -05:00
Committerolim7t <omichallat+github@gmail.com> · 2015-11-05 18:37 +01:00
Parents3b0bb96beb28

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/SessionTest.java +1 −1
@@ -290,7 +290,7 @@
290290 startLatch.countDown();
291291
292292 executor.shutdown();
293- boolean normalShutdown = executor.awaitTermination(1, TimeUnit.SECONDS);
293+ boolean normalShutdown = executor.awaitTermination(5, TimeUnit.SECONDS);
294294 assertTrue(normalShutdown);
295295
296296 // The deadlock occurred here before JAVA-418