Skip to content

Commit

Permalink
Changed test delays.
Browse files Browse the repository at this point in the history
  • Loading branch information
dykstrom committed Dec 25, 2018
1 parent 02222c5 commit 29ad47f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/test/java/se/dykstrom/ronja/engine/ui/RonjaIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ private List<String> readAllInput() throws Exception {

// Assume there will be some input
while (!reader.ready()) {
Thread.sleep(1000);
Thread.sleep(100);
}
while (reader.ready()) {
list.add(reader.readLine());
Thread.sleep(100);
}

// Fail if we discover an exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,11 @@ private List<String> readAllInput() throws Exception {

// Assume there will be some input
while (!reader.ready() && process.isAlive()) {
Thread.sleep(10);
Thread.sleep(100);
}
while (reader.ready()) {
Thread.sleep(100);
list.add(reader.readLine());
Thread.sleep(100);
}

// Fail if we discover an exception
Expand Down

0 comments on commit 29ad47f

Please sign in to comment.