test: remove hard-coded metric count

Prior to this commit, adding any metric to the catalog (and only the
catalog) would cause the end_to_end_ng_cases::metrics::test_metrics test
to fail due to asserting an exact number of metrics observed.

This commit changes the check condition to a more permisive >= rather
than ==.
pull/24376/head
Dom Dwyer 2022-04-28 11:28:48 +01:00
parent 420c306caa
commit 246af0c3ca
1 changed files with 3 additions and 3 deletions

View File

@ -16,13 +16,13 @@ pub async fn test_metrics() {
Step::WriteLineProtocol(lp),
Step::WaitForReadable,
Step::VerifiedMetrics(Box::new(|_state, metrics| {
assert_eq!(
assert!(
metrics
.trim()
.split('\n')
.filter(|x| x.starts_with("catalog_op_duration_ms_bucket"))
.count(),
180
.count()
>= 180
);
})),
],