Skip to content

Commit

Permalink
Remove sleep from BWC test mixed cluster scenario (#296)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Qureshi <[email protected]>
  • Loading branch information
qreshi authored Feb 8, 2022
1 parent bf90784 commit 92aa4bd
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,17 @@ class AlertingBackwardsCompatibilityIT : AlertingRestTestCase() {
ClusterType.MIXED -> {
assertTrue(pluginNames.contains("opensearch-alerting"))
verifyMonitorExists(LEGACY_OPENDISTRO_ALERTING_BASE_URI)
// Waiting a minute to ensure the Monitor ran again at least once before checking if the job is running
// on time
// TODO: Should probably change the next execution time of the Monitor manually instead since this inflates
// the test execution by a lot
Thread.sleep(60000)
// TODO: Need to move the base URI being used here into a constant and rename ALERTING_BASE_URI to
// MONITOR_BASE_URI
verifyMonitorStats("/_opendistro/_alerting")
}
ClusterType.UPGRADED -> {
assertTrue(pluginNames.contains("opensearch-alerting"))
verifyMonitorExists(ALERTING_BASE_URI)
// TODO: Change the next execution time of the Monitor manually instead since this inflates
// the test execution by a lot (might have to wait for Job Scheduler plugin integration first)
// Waiting a minute to ensure the Monitor ran again at least once before checking if the job is running
// on time
Thread.sleep(60000)
verifyMonitorStats("/_plugins/_alerting")
}
Expand Down

0 comments on commit 92aa4bd

Please sign in to comment.