Skip to content

Commit

Permalink
Increase timeout (slow laptop)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-ronge committed Sep 9, 2024
1 parent 4ed11a4 commit 22e280c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void runNotExistingScriptAsync() throws InterruptedException {
String commandString = scriptPath + "not_existing_script" + scriptExtension;
CommandService service = new CommandService();
service.runCommandAsync(commandString);
Thread.sleep(1000); // wait for async thread to finish;
Thread.sleep(2000); // wait for async thread to finish;
CommandResult result = getLastFinishedCommandResult(service.getFinishedCommandResults());
assertNotNull("There were no results!", result);
assertTrue("result message should contain IOException",
Expand All @@ -173,7 +173,7 @@ public void runScriptParametersAsync() throws InterruptedException {
parameter.add("HelloWorld");
CommandService service = new CommandService();
service.runCommandAsync(file, parameter);
Thread.sleep(1000); // wait for async thread to finish;
Thread.sleep(2000); // wait for async thread to finish;
CommandResult result = getLastFinishedCommandResult(service.getFinishedCommandResults());

ArrayList<String> expectedMessages = new ArrayList<>();
Expand Down

0 comments on commit 22e280c

Please sign in to comment.