Skip to content

Commit acade2b

Browse files
committed
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.
1 parent 927111c commit acade2b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/framework/src/test/java/org/elasticsearch/transport/nio/channel/NioSocketChannelTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import java.util.concurrent.TimeUnit;
2727
import java.util.concurrent.locks.LockSupport;
2828

29-
import static org.hamcrest.Matchers.containsString;
3029
import static org.hamcrest.Matchers.instanceOf;
3130

3231
public class NioSocketChannelTests extends AbstractNioChannelTestCase {
@@ -68,7 +67,6 @@ public void testConnectFails() throws IOException, InterruptedException {
6867
assertTrue(socketChannel.isOpen());
6968
assertTrue(connectFuture.connectFailed());
7069
assertThat(connectFuture.getException(), instanceOf(ConnectException.class));
71-
assertThat(connectFuture.getException().getMessage(), containsString("Connection refused"));
7270

7371
thread.join();
7472
}

0 commit comments

Comments
 (0)