Skip to content
Snippets Groups Projects
Commit de479260 authored by Marcelo Vanzin's avatar Marcelo Vanzin Committed by Andrew Or
Browse files

[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.
parent 5a4b11a9
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment