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:
Martijn van Groningen 2014-11-27 14:27:56 +01:00
parent c29e3c9611
commit b54aea7c14
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
});