From 29ad47fdea2c412fb29f1cc3ebbdc08183c1635d Mon Sep 17 00:00:00 2001 From: dykstrom Date: Tue, 25 Dec 2018 16:46:18 +0100 Subject: [PATCH] Changed test delays. --- src/test/java/se/dykstrom/ronja/engine/ui/RonjaIT.java | 3 ++- .../java/se/dykstrom/ronja/engine/ui/XBoardProtocolIT.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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