diff options
author | Marcelo Vanzin <vanzin@cloudera.com> | 2016-04-06 15:45:03 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2016-04-06 15:45:03 -0700 |
commit | de4792605ad94d3d7548a2139372bb6cac331079 (patch) | |
tree | a6b61c59d61724913a87e6bfc5afce42040a9ed9 | |
parent | 5a4b11a901703464b9261dea0642d80cf8d4856c (diff) | |
download | spark-de4792605ad94d3d7548a2139372bb6cac331079.tar.gz spark-de4792605ad94d3d7548a2139372bb6cac331079.tar.bz2 spark-de4792605ad94d3d7548a2139372bb6cac331079.zip |
[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 <vanzin@cloudera.com>
Closes #12210 from vanzin/SPARK-14391.
-rw-r--r-- | launcher/src/test/java/org/apache/spark/launcher/LauncherServerSuite.java | 6 |
1 files changed, 3 insertions, 3 deletions
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); |