410498 ignore type of exception in GoAwayTest.testDataNotProcessedAfterGoAway
This commit is contained in:
parent
26b4db5c7d
commit
c3c9d927b4
|
@ -62,7 +62,7 @@ public class SPDYConnection extends AbstractConnection implements Controller, Id
|
|||
//
|
||||
// Due to a jvm bug we've had a Selector thread being stuck at
|
||||
// sun.nio.ch.FileDispatcherImpl.preClose0(Native Method). That's why we now default executeOnFillable to
|
||||
// true even if for most use cases it is faster to not dispatch the IO events.
|
||||
// true even if for most use cases it is faster to not dispatch the IO events.
|
||||
super(endPoint, executor, executeOnFillable);
|
||||
this.bufferPool = bufferPool;
|
||||
this.parser = parser;
|
||||
|
|
|
@ -24,7 +24,6 @@ import java.util.concurrent.TimeUnit;
|
|||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import org.eclipse.jetty.io.EofException;
|
||||
import org.eclipse.jetty.spdy.api.DataInfo;
|
||||
import org.eclipse.jetty.spdy.api.GoAwayInfo;
|
||||
import org.eclipse.jetty.spdy.api.GoAwayResultInfo;
|
||||
|
@ -41,7 +40,6 @@ import org.eclipse.jetty.util.Callback;
|
|||
import org.eclipse.jetty.util.Fields;
|
||||
import org.eclipse.jetty.util.FutureCallback;
|
||||
import org.eclipse.jetty.util.FuturePromise;
|
||||
import org.hamcrest.CoreMatchers;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -223,7 +221,8 @@ public class GoAwayTest extends AbstractTest
|
|||
}
|
||||
catch (ExecutionException x)
|
||||
{
|
||||
Assert.assertThat(x.getCause(), CoreMatchers.instanceOf(EofException.class));
|
||||
// doesn't matter which exception we get, it's important that the data is not been written and the
|
||||
// previous assertion is true
|
||||
}
|
||||
|
||||
// The last good stream is the second, because it was received by the server
|
||||
|
|
Loading…
Reference in New Issue