From eec660e089e7587469802e8fe6e676af6d973087 Mon Sep 17 00:00:00 2001 From: Emmanuel Bigeon Date: Sun, 2 Dec 2018 13:57:21 -0500 Subject: [PATCH] Improved message to test failure Signed-off-by: Emmanuel Bigeon --- .../gclc/process/io/ConnectingConsoleInputTest.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gclc-process/src/test/java/net/bigeon/gclc/process/io/ConnectingConsoleInputTest.java b/gclc-process/src/test/java/net/bigeon/gclc/process/io/ConnectingConsoleInputTest.java index aaa2452..e324ded 100644 --- a/gclc-process/src/test/java/net/bigeon/gclc/process/io/ConnectingConsoleInputTest.java +++ b/gclc-process/src/test/java/net/bigeon/gclc/process/io/ConnectingConsoleInputTest.java @@ -84,14 +84,16 @@ public class ConnectingConsoleInputTest { @Override public void apply() throws Exception { try { - in.prompt("m1", -1); - fail("interruption of infinite waiting prompt should cause error"); + final String res = in.prompt("m1", -1); + fail("interruption of infinite waiting prompt should cause error, but was " + + res); } catch (final InterruptedIOException e) { // ok } try { - in.prompt("m2", 5000); - fail("interruption of finite waiting prompt should cause error"); + final String res = in.prompt("m2", 25000); + fail("interruption of finite waiting prompt should cause error, but was " + + res); } catch (final InterruptedIOException e) { // ok }