From 88962839fbaf9cc05854b6ff5f4a5d24af537300 Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Wed, 21 Aug 2019 14:34:33 +0200 Subject: [PATCH] Disable testTimeoutPerConnection on Windows * It appears this test that is specific to how the BSD network stack works does randomly fail on Windows => disabling it since it's not clear that it should work on Windows in a stable way * Fixes #45777 --- .../transport/AbstractSimpleTransportTestCase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java b/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java index 6cc2e0ca7177b..f25ec790d6df1 100644 --- a/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java @@ -1907,8 +1907,7 @@ public void testRegisterHandlerTwice() { } public void testTimeoutPerConnection() throws IOException { - assumeTrue("Works only on BSD network stacks and apparently windows", - Constants.MAC_OS_X || Constants.FREE_BSD || Constants.WINDOWS); + assumeTrue("Works only on BSD network stacks", Constants.MAC_OS_X || Constants.FREE_BSD); try (ServerSocket socket = new MockServerSocket()) { // note - this test uses backlog=1 which is implementation specific ie. it might not work on some TCP/IP stacks // on linux (at least newer ones) the listen(addr, backlog=1) should just ignore new connections if the queue is full which