Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
Signed-off-by: Riya Saxena <[email protected]>
  • Loading branch information
riysaxen-amzn committed Dec 17, 2024
1 parent 779afc3 commit 0fce044
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2791,7 +2791,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
indexDoc(aliasName, "6", testDoc)
indexDoc(aliasName, "7", testDoc)
OpenSearchTestCase.waitUntil(
{ searchFindings(monitor).size == 6 }, 2, TimeUnit.MINUTES
{ searchFindings(monitor).size == 6 && searchAlertsWithFilter(monitor).size == 1 }, 2, TimeUnit.MINUTES
)

rolloverDatastream(aliasName)
Expand All @@ -2802,7 +2802,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
indexDoc(aliasName, "16", testDoc)
indexDoc(aliasName, "17", testDoc)
OpenSearchTestCase.waitUntil(
{ searchFindings(monitor).size == 6 }, 2, TimeUnit.MINUTES
{ searchFindings(monitor).size == 6 && searchAlertsWithFilter(monitor).size == 1 }, 2, TimeUnit.MINUTES
)

deleteDataStream(aliasName)
Expand Down

0 comments on commit 0fce044

Please sign in to comment.