Browse Source

Suppress DeadHostStateTests on Windows

David Turner 7 years ago
parent
commit
6b0fc5382a

+ 2 - 0
client/rest/src/test/java/org/elasticsearch/client/DeadHostStateTests.java

@@ -36,6 +36,7 @@ public class DeadHostStateTests extends RestClientTestCase {
     private static long[] EXPECTED_TIMEOUTS_SECONDS = new long[]{60, 84, 120, 169, 240, 339, 480, 678, 960, 1357, 1800};
     private static long[] EXPECTED_TIMEOUTS_SECONDS = new long[]{60, 84, 120, 169, 240, 339, 480, 678, 960, 1357, 1800};
 
 
     public void testInitialDeadHostStateDefaultTimeSupplier() {
     public void testInitialDeadHostStateDefaultTimeSupplier() {
+        assumeFalse("https://github.com/elastic/elasticsearch/issues/33747", System.getProperty("os.name").startsWith("Windows"));
         DeadHostState deadHostState = new DeadHostState(DeadHostState.TimeSupplier.DEFAULT);
         DeadHostState deadHostState = new DeadHostState(DeadHostState.TimeSupplier.DEFAULT);
         long currentTime = System.nanoTime();
         long currentTime = System.nanoTime();
         assertThat(deadHostState.getDeadUntilNanos(), greaterThan(currentTime));
         assertThat(deadHostState.getDeadUntilNanos(), greaterThan(currentTime));
@@ -54,6 +55,7 @@ public class DeadHostStateTests extends RestClientTestCase {
     }
     }
 
 
     public void testCompareToDefaultTimeSupplier() {
     public void testCompareToDefaultTimeSupplier() {
+        assumeFalse("https://github.com/elastic/elasticsearch/issues/33747", System.getProperty("os.name").startsWith("Windows"));
         int numObjects = randomIntBetween(EXPECTED_TIMEOUTS_SECONDS.length, 30);
         int numObjects = randomIntBetween(EXPECTED_TIMEOUTS_SECONDS.length, 30);
         DeadHostState[] deadHostStates = new DeadHostState[numObjects];
         DeadHostState[] deadHostStates = new DeadHostState[numObjects];
         for (int i = 0; i < numObjects; i++) {
         for (int i = 0; i < numObjects; i++) {