From de4792605ad94d3d7548a2139372bb6cac331079 Mon Sep 17 00:00:00 2001 From: Marcelo Vanzin Date: Wed, 6 Apr 2016 15:45:03 -0700 Subject: [SPARK-14391][LAUNCHER] Increase test timeouts. Most of the time tests should still pass really quickly; it's just when machines are overloaded that the tests may take a little time, but that's still preferable over just failing the test. Author: Marcelo Vanzin Closes #12210 from vanzin/SPARK-14391. --- .../test/java/org/apache/spark/launcher/LauncherServerSuite.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'launcher') diff --git a/launcher/src/test/java/org/apache/spark/launcher/LauncherServerSuite.java b/launcher/src/test/java/org/apache/spark/launcher/LauncherServerSuite.java index a9039b3ec9..bfe1fcc87f 100644 --- a/launcher/src/test/java/org/apache/spark/launcher/LauncherServerSuite.java +++ b/launcher/src/test/java/org/apache/spark/launcher/LauncherServerSuite.java @@ -83,13 +83,13 @@ public class LauncherServerSuite extends BaseSuite { client = new TestClient(s); client.send(new Hello(handle.getSecret(), "1.4.0")); - assertTrue(semaphore.tryAcquire(1, TimeUnit.SECONDS)); + assertTrue(semaphore.tryAcquire(30, TimeUnit.SECONDS)); // Make sure the server matched the client to the handle. assertNotNull(handle.getConnection()); client.send(new SetAppId("app-id")); - assertTrue(semaphore.tryAcquire(1, TimeUnit.SECONDS)); + assertTrue(semaphore.tryAcquire(30, TimeUnit.SECONDS)); assertEquals("app-id", handle.getAppId()); client.send(new SetState(SparkAppHandle.State.RUNNING)); @@ -97,7 +97,7 @@ public class LauncherServerSuite extends BaseSuite { assertEquals(SparkAppHandle.State.RUNNING, handle.getState()); handle.stop(); - Message stopMsg = client.inbound.poll(10, TimeUnit.SECONDS); + Message stopMsg = client.inbound.poll(30, TimeUnit.SECONDS); assertTrue(stopMsg instanceof Stop); } finally { kill(handle); -- cgit v1.2.3