Skip to content

Commit

Permalink
Mute test class on windows
Browse files Browse the repository at this point in the history
Tracked in elastic#44339
  • Loading branch information
alpar-t committed Jul 15, 2019
1 parent 291675e commit 6bd605a
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
import org.elasticsearch.test.transport.StubbableTransport;
import org.elasticsearch.threadpool.TestThreadPool;
import org.elasticsearch.threadpool.ThreadPool;
import org.junit.Before;

import java.io.IOException;
import java.net.InetAddress;
Expand Down Expand Up @@ -111,6 +112,13 @@ public void tearDown() throws Exception {
ThreadPool.terminate(threadPool, 10, TimeUnit.SECONDS);
}

@Override
@Before
public void setUp() throws Exception {
super.setUp();
assumeFalse("https://github.com/elastic/elasticsearch/issues/44339", System.getProperty("os.name").contains("Win"));
}

private MockTransportService startTransport(String id, List<DiscoveryNode> knownNodes, Version version) {
return startTransport(id, knownNodes, version, threadPool);
}
Expand Down Expand Up @@ -178,7 +186,6 @@ public static MockTransportService startTransport(
}

public void testRemoteProfileIsUsedForLocalCluster() throws Exception {
assumeFalse("https://github.com/elastic/elasticsearch/issues/44339", System.getProperty("os.name").contains("Win"));
List<DiscoveryNode> knownNodes = new CopyOnWriteArrayList<>();
try (MockTransportService seedTransport = startTransport("seed_node", knownNodes, Version.CURRENT);
MockTransportService discoverableTransport = startTransport("discoverable_node", knownNodes, Version.CURRENT)) {
Expand Down Expand Up @@ -456,7 +463,6 @@ private void updateSeedNodes(
}

public void testConnectWithIncompatibleTransports() throws Exception {
assumeFalse("https://github.com/elastic/elasticsearch/issues/44339", System.getProperty("os.name").contains("Win"));
List<DiscoveryNode> knownNodes = new CopyOnWriteArrayList<>();
try (MockTransportService seedTransport = startTransport("seed_node", knownNodes, Version.fromString("2.0.0"))) {
DiscoveryNode seedNode = seedTransport.getLocalDiscoNode();
Expand Down

0 comments on commit 6bd605a

Please sign in to comment.