mirror of https://github.com/linkerd/linkerd2.git
Fix assertions in metrics_compression test (#847)
Fixes #846
The proxy `metrics_compression` test contained an assertion that a compressed scrape contained the `request_duration_ms_count` metric. This was chosen completely arbitrarily, and was only intended as an assertion that metrics were updated between compressed scrapes. Unfortunately, that metric was removed in d9112abc93
, so when #665 merged to master, this test broke. CI didn't catch this since we don't build merges for PRs --- we should probably (re)enable this in Travis?
This PR fixes the test to assert on a metric that wasn't removed. Sorry for the ❌s!
This commit is contained in:
parent
aca09813fd
commit
3a3079d8ed
|
@ -1148,7 +1148,7 @@ fn metrics_compression() {
|
|||
|
||||
for &encoding in encodings {
|
||||
assert_contains!(do_scrape(encoding),
|
||||
"request_duration_ms_count{authority=\"tele.test.svc.cluster.local\",direction=\"inbound\"} 1");
|
||||
"response_latency_ms_count{authority=\"tele.test.svc.cluster.local\",direction=\"inbound\",classification=\"success\",status_code=\"200\"} 1");
|
||||
}
|
||||
|
||||
info!("client.get(/)");
|
||||
|
@ -1156,6 +1156,6 @@ fn metrics_compression() {
|
|||
|
||||
for &encoding in encodings {
|
||||
assert_contains!(do_scrape(encoding),
|
||||
"request_duration_ms_count{authority=\"tele.test.svc.cluster.local\",direction=\"inbound\"} 2");
|
||||
"response_latency_ms_count{authority=\"tele.test.svc.cluster.local\",direction=\"inbound\",classification=\"success\",status_code=\"200\"} 2");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue