improved test failure message

This commit is contained in:
Greg Wilkins 2011-11-10 13:26:30 +11:00
parent 629b6360de
commit f37b617481
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{