Skip to content

Commit

Permalink
Fixed a flaky test condition. (opensearch-project#375)
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Apr 21, 2022
1 parent 08b1563 commit 6dbba16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ class MonitorRunnerServiceIT : AlertingRestTestCase() {
val trigger = randomQueryLevelTrigger(
condition = Script(
"""
return ctx.results[0].number_of_pending_tasks < 1
return ctx.results[0].number_of_pending_tasks >= 0
""".trimIndent()
),
destinationId = createDestination().id
Expand Down

0 comments on commit 6dbba16

Please sign in to comment.