Test: We can't be sure how often an alert has been fired, so these asserts should by in the atleast mindset.
Original commit: elastic/x-pack-elasticsearch@d4195eb3c0
This commit is contained in:
parent
c29e3c9611
commit
b54aea7c14
|
@ -157,7 +157,7 @@ public class AlertThrottleTests extends AbstractAlertingTests {
|
|||
}
|
||||
}
|
||||
|
||||
assertThat(countResponse.getCount(), equalTo(1L));
|
||||
assertThat(countResponse.getCount(), greaterThanOrEqualTo(1L));
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -171,7 +171,7 @@ public class AlertThrottleTests extends AbstractAlertingTests {
|
|||
.setTypes("action-type")
|
||||
.setSource(searchSource().query(matchAllQuery()).buildAsBytes())
|
||||
.get();
|
||||
assertThat(countResponse.getCount(), equalTo(2L));
|
||||
assertThat(countResponse.getCount(), greaterThanOrEqualTo(2L));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue