Tests: Remove platform specific assertion in NioSocketChannelTests

This check depends on the language settings on the system the
test runs on, e.g. it fails on Ubuntu with LANG=de_DE.UTF-8.
This commit is contained in:
Christoph Büscher 2017-06-29 17:32:39 +02:00
parent 927111c91d
commit acade2b40a
1 changed files with 0 additions and 2 deletions

View File

@ -26,7 +26,6 @@ import java.net.InetSocketAddress;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.LockSupport;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.instanceOf;
public class NioSocketChannelTests extends AbstractNioChannelTestCase {
@ -68,7 +67,6 @@ public class NioSocketChannelTests extends AbstractNioChannelTestCase {
assertTrue(socketChannel.isOpen());
assertTrue(connectFuture.connectFailed());
assertThat(connectFuture.getException(), instanceOf(ConnectException.class));
assertThat(connectFuture.getException().getMessage(), containsString("Connection refused"));
thread.join();
}