From f37b617481be88acb2621be3073a1cdb0c0e36ec Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 10 Nov 2011 13:26:30 +1100 Subject: [PATCH] improved test failure message --- .../org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-io/src/test/java/org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java b/jetty-io/src/test/java/org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java index d1437aba839..2a1aa532a07 100644 --- a/jetty-io/src/test/java/org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java +++ b/jetty-io/src/test/java/org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java @@ -292,8 +292,8 @@ public class SelectChannelEndPointTest long start=System.currentTimeMillis(); try { - client.getInputStream().read(); - Assert.fail("Should have timed out waiting for a response"); + int b= client.getInputStream().read(); + Assert.fail("Should have timed out waiting for a response, but read "+b); } catch(SocketTimeoutException e) {