mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 23:49:13 +00:00
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")
|
.setTypes("action-type")
|
||||||
.setSource(searchSource().query(matchAllQuery()).buildAsBytes())
|
.setSource(searchSource().query(matchAllQuery()).buildAsBytes())
|
||||||
.get();
|
.get();
|
||||||
assertThat(countResponse.getCount(), equalTo(2L));
|
assertThat(countResponse.getCount(), greaterThanOrEqualTo(2L));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user