mirror of https://github.com/linkerd/linkerd2.git
Remove count from opaque ports tcp metric (#5422)
We need to test for the presence of the TCP metric labels, not the exact count. This change removes the count of `1` so that it can match any count. Signed-off-by: Kevin Leimkuhler <kevin@kleimkuhler.com>
This commit is contained in:
parent
f6c8d27d83
commit
2c78cf9255
|
@ -19,7 +19,7 @@ var (
|
||||||
|
|
||||||
// With the app's port marked as opaque, we expect to find a single open
|
// With the app's port marked as opaque, we expect to find a single open
|
||||||
// TCP connection that is not TLS'd because the port is skipped.
|
// TCP connection that is not TLS'd because the port is skipped.
|
||||||
tcpMetric = "tcp_open_total{peer=\"src\",direction=\"inbound\",tls=\"no_identity\",no_tls_reason=\"port_skipped\"} 1"
|
tcpMetric = "tcp_open_total{peer=\"src\",direction=\"inbound\",tls=\"no_identity\",no_tls_reason=\"port_skipped\"}"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
func TestMain(m *testing.M) {
|
||||||
|
|
Loading…
Reference in New Issue