mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 12:29:31 +00:00
Adjusting failing testcase to be more clear about failures
This commit is contained in:
parent
4808239cbd
commit
3302d3fc60
@ -1,7 +1,7 @@
|
||||
package org.eclipse.jetty.io.nio;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.hamcrest.Matchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.Socket;
|
||||
@ -283,12 +283,12 @@ public class SelectChannelEndPointTest
|
||||
try
|
||||
{
|
||||
client.getInputStream().read();
|
||||
Assert.fail();
|
||||
Assert.fail("Should have timed out waiting for a response");
|
||||
}
|
||||
catch(SocketTimeoutException e)
|
||||
{
|
||||
System.err.println("blocked "+(System.currentTimeMillis()-start));
|
||||
assertTrue(System.currentTimeMillis()-start>=100);
|
||||
Assert.assertThat("Expected timeout", System.currentTimeMillis()-start, greaterThanOrEqualTo(100L));
|
||||
}
|
||||
|
||||
// write remaining characters
|
||||
|
Loading…
x
Reference in New Issue
Block a user