Skip to content

Commit

Permalink
Give commands more time to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe committed Jan 17, 2020
1 parent a4b2f60 commit 4cf95f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ public void testCommandExecution() throws Exception {
}
assertEquals("Not all threads finished successfully", t.length, results.size());
for (ProcReturn r : results) {
assertEquals("Command didn't complete in time or failed", 0, r.exitCode);
assertTrue("Output should contain pid: " + r.output, PID_PATTERN.matcher(r.output).find());
assertEquals(0, r.exitCode);
assertFalse(r.proc.isAlive());
}
}
Expand Down Expand Up @@ -385,7 +385,7 @@ private ProcReturn execCommandInContainer(String containerName, Node node, boole
Thread.sleep(100);
}
assertFalse("proc is alive", proc.isAlive());
int exitCode = proc.joinWithTimeout(10, TimeUnit.SECONDS, StreamTaskListener.fromStderr());
int exitCode = proc.joinWithTimeout(20, TimeUnit.SECONDS, StreamTaskListener.fromStderr());
return new ProcReturn(proc, exitCode, out.toString());
}

Expand Down

0 comments on commit 4cf95f2

Please sign in to comment.