diff options
author | Valery Piashchynski <[email protected]> | 2020-11-16 15:36:52 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-16 15:36:52 +0300 |
commit | f592c6e410fd1f8075c8b75597eb8e5dc7ba9cf1 (patch) | |
tree | 98413f71b0fcc6f8bf763ecaaa735152522d16e9 /plugins/metrics/tests/metrics_test.go | |
parent | d40ff179e43a02726bfa4298e523a16c79a88cea (diff) |
Metrics collector returns slice of values
Diffstat (limited to 'plugins/metrics/tests/metrics_test.go')
-rw-r--r-- | plugins/metrics/tests/metrics_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/metrics/tests/metrics_test.go b/plugins/metrics/tests/metrics_test.go index 7528fc46..d3043fbb 100644 --- a/plugins/metrics/tests/metrics_test.go +++ b/plugins/metrics/tests/metrics_test.go @@ -158,9 +158,9 @@ func TestMetricsGaugeCollector(t *testing.T) { assert.NoError(t, err) assert.Contains(t, out, "my_gauge 100") - genericOut, err := get("http://localhost:2112/metrics") + out, err = get("http://localhost:2112/metrics") assert.NoError(t, err) - assert.Contains(t, genericOut, "go_gc_duration_seconds") + assert.Contains(t, out, "go_gc_duration_seconds") for { select { |