Skip to content

Commit ed5177d

Browse files
committed
UNDERTOW-1859 Fix WriteTimeoutTestCase not terminating
1 parent 023e16c commit ed5177d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

core/src/test/java/io/undertow/server/WriteTimeoutTestCase.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import org.apache.http.HttpResponse;
3232
import org.apache.http.client.methods.HttpGet;
3333
import org.junit.Assert;
34-
import org.junit.Ignore;
3534
import org.junit.Test;
3635
import org.junit.runner.RunWith;
3736
import org.xnio.ChannelListener;
@@ -47,7 +46,7 @@
4746
*/
4847
@RunWith(DefaultServer.class)
4948
@HttpOneOnly
50-
@Ignore("UNDERTOW-1859 this test freezes") //FIXME
49+
// @Ignore("UNDERTOW-1859 this test freezes") //FIXME
5150
public class WriteTimeoutTestCase {
5251

5352
private volatile Exception exception;
@@ -92,12 +91,10 @@ public void handleEvent(final Channel channel) {
9291
do {
9392
try {
9493
int res = response.write(buffer);
95-
if (res == 0) {
96-
return;
97-
}
9894
} catch (IOException e) {
9995
exception = e;
10096
errorLatch.countDown();
97+
break;
10198
}
10299
if(!buffer.hasRemaining()) {
103100
count++;

0 commit comments

Comments
 (0)