Skip test on windows as the semantics we expect are only true on Linux / Unix / BSD / MacOS (#8629)

Motivation:

In the test we assume some semantics on how RST is done that are not true for Windows so we should skip it.

Modifications:

Skip test when on windows.

Result:

Be able to run testsuite on windows. Fixes https://github.com/netty/netty/issues/8571.
This commit is contained in:
Norman Maurer 2018-12-06 20:43:40 +01:00 committed by GitHub
parent 5df235c083
commit 51a650979f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,8 @@ import io.netty.channel.socket.ChannelInputShutdownReadComplete;
import io.netty.channel.socket.ChannelOutputShutdownEvent;
import io.netty.channel.socket.DuplexChannel;
import io.netty.util.UncheckedBooleanSupplier;
import io.netty.util.internal.PlatformDependent;
import org.junit.Assume;
import org.junit.Test;
import java.util.concurrent.CountDownLatch;
@ -229,6 +231,8 @@ public class SocketHalfClosedTest extends AbstractSocketTest {
@Test
public void testAutoCloseFalseDoesShutdownOutput() throws Throwable {
// This test only works on Linux / BSD / MacOS as we assume some semantics that are not true for Windows.
Assume.assumeFalse(PlatformDependent.isWindows());
run();
}