diff --git a/src/test/java/se/dykstrom/ronja/engine/ui/RonjaIT.java b/src/test/java/se/dykstrom/ronja/engine/ui/RonjaIT.java index 28d040d..354e4b4 100644 --- a/src/test/java/se/dykstrom/ronja/engine/ui/RonjaIT.java +++ b/src/test/java/se/dykstrom/ronja/engine/ui/RonjaIT.java @@ -115,10 +115,11 @@ private List 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 diff --git a/src/test/java/se/dykstrom/ronja/engine/ui/XBoardProtocolIT.java b/src/test/java/se/dykstrom/ronja/engine/ui/XBoardProtocolIT.java index 7d34644..741e3b5 100644 --- a/src/test/java/se/dykstrom/ronja/engine/ui/XBoardProtocolIT.java +++ b/src/test/java/se/dykstrom/ronja/engine/ui/XBoardProtocolIT.java @@ -540,11 +540,11 @@ private List 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