Skip to content

Commit

Permalink
Increase assert timeout for DeprecationHttpIT to reduce risk of faili…
Browse files Browse the repository at this point in the history
…ng when test cluster is slow to warm up (fixes elastic#115179) (elastic#115621)
  • Loading branch information
mosche authored Oct 25, 2024
1 parent 3d307e0 commit 16f61b4
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void testDeprecatedSettingsReturnWarnings() throws Exception {
List<Map<String, Object>> documents = DeprecationTestUtils.getIndexedDeprecations(client(), xOpaqueId());
logger.warn(documents);
assertThat(documents, hasSize(2));
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);
} finally {
Response response = cleanupSettings();
List<String> warningHeaders = getWarningHeaders(response.getHeaders());
Expand Down Expand Up @@ -245,7 +245,7 @@ private void doTestDeprecationWarningsAppearInHeaders(String xOpaqueId) throws E
var documents = DeprecationTestUtils.getIndexedDeprecations(client(), xOpaqueId);
logger.warn(documents);
assertThat(documents, hasSize(headerMatchers.size()));
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);
}

public void testDeprecationRouteThrottling() throws Exception {
Expand Down Expand Up @@ -275,7 +275,7 @@ public void testDeprecationRouteThrottling() throws Exception {
)
)
);
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);

}

Expand Down Expand Up @@ -303,7 +303,7 @@ public void testDisableDeprecationLogIndexing() throws Exception {
)
)
);
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);
} finally {
configureWriteDeprecationLogsToIndex(null);
}
Expand Down Expand Up @@ -369,7 +369,7 @@ public void testDeprecationMessagesCanBeIndexed() throws Exception {
)
)
);
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);

}

Expand Down Expand Up @@ -414,7 +414,7 @@ public void testDeprecationCriticalWarnMessagesCanBeIndexed() throws Exception {
)
)
);
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);

}

Expand Down Expand Up @@ -473,7 +473,7 @@ public void testDeprecationWarnMessagesCanBeIndexed() throws Exception {
)
)
);
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);

}

Expand Down Expand Up @@ -504,7 +504,7 @@ public void testDeprecateAndKeep() throws Exception {
)
)
);
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);
}

public void testReplacesInCurrentVersion() throws Exception {
Expand Down Expand Up @@ -534,7 +534,7 @@ public void testReplacesInCurrentVersion() throws Exception {
)
)
);
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);
}

public void testReplacesInCompatibleVersion() throws Exception {
Expand Down Expand Up @@ -579,7 +579,7 @@ public void testReplacesInCompatibleVersion() throws Exception {
)
)
);
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);
}

/**
Expand Down Expand Up @@ -649,7 +649,7 @@ public void testCompatibleMessagesCanBeIndexed() throws Exception {
)
)
);
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);

}

Expand Down Expand Up @@ -690,7 +690,7 @@ public void testDeprecationIndexingCacheReset() throws Exception {
)
)
);
}, 30, TimeUnit.SECONDS);
}, 45, TimeUnit.SECONDS);

}

Expand Down

0 comments on commit 16f61b4

Please sign in to comment.