提交 df4ba0d8 编写于 作者: J Jesse Glick

Trying to make testRemoteKill less prone to random failure (presumably on a...

Trying to make testRemoteKill less prone to random failure (presumably on a heavily loaded machine).
上级 4c0cfe40
......@@ -56,7 +56,7 @@ public class LauncherTest extends ChannelTestCase {
p.kill();
assertTrue(p.join()!=0);
long end = System.currentTimeMillis();
assertTrue("join finished promptly", (end - start < 5000));
assertTrue("join finished promptly", (end - start < 15000));
french.call(NOOP); // this only returns after the other side of the channel has finished executing cancellation
Thread.sleep(2000); // more delay to make sure it's gone
assertNull("process should be gone",ProcessTree.get().get(Integer.parseInt(FileUtils.readFileToString(tmp).trim())));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册