Skip to content

Commit

Permalink
test: modified delays of parallel tests in RunnerTest (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Jan 7, 2023
1 parent 4e0c87a commit c51510c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/sabi/RunnerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RunPara {
void should_run_argument_runners_in_parallel() throws Exception {
var logs = new ArrayList<String>();
Runner.runPara(() -> {
try { Thread.sleep(100); } catch (InterruptedException e) {}
try { Thread.sleep(200); } catch (InterruptedException e) {}
logs.add("1");
}, () -> {
try { Thread.sleep(20); } catch (InterruptedException e) {}
Expand Down Expand Up @@ -114,7 +114,7 @@ class Para {
void should_run_holding_runners_in_parallel() throws Exception {
var logs = new ArrayList<String>();
var runner = Runner.para(() -> {
try { Thread.sleep(100); } catch (InterruptedException e) {}
try { Thread.sleep(200); } catch (InterruptedException e) {}
logs.add("1");
}, () -> {
try { Thread.sleep(20); } catch (InterruptedException e) {}
Expand Down

0 comments on commit c51510c

Please sign in to comment.