summaryrefslogtreecommitdiff
path: root/tests/plugins/metrics
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-20 15:19:39 +0300
committerValery Piashchynski <[email protected]>2021-04-20 15:19:39 +0300
commit5c63b9b8b774917712bab165b37f360aab509828 (patch)
treeb3feb3cf19a34652d5ad23be3e049123bbc04233 /tests/plugins/metrics
parentdea388c8357cbeced3b131a440672f98260751ea (diff)
- Delay for the http plugin
Diffstat (limited to 'tests/plugins/metrics')
-rw-r--r--tests/plugins/metrics/metrics_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/plugins/metrics/metrics_test.go b/tests/plugins/metrics/metrics_test.go
index 298345b0..8be567ec 100644
--- a/tests/plugins/metrics/metrics_test.go
+++ b/tests/plugins/metrics/metrics_test.go
@@ -82,6 +82,7 @@ func TestMetricsInit(t *testing.T) {
tt := time.NewTimer(time.Second * 5)
defer tt.Stop()
+ time.Sleep(time.Second * 2)
out, err := get()
assert.NoError(t, err)
@@ -279,6 +280,7 @@ func TestMetricsGaugeCollector(t *testing.T) {
tt := time.NewTimer(time.Second * 5)
defer tt.Stop()
+ time.Sleep(time.Second * 2)
out, err := get()
assert.NoError(t, err)
assert.Contains(t, out, "my_gauge 100")
@@ -439,6 +441,7 @@ func TestMetricsDifferentRPCCalls(t *testing.T) {
}
}()
+ time.Sleep(time.Second * 2)
t.Run("DeclareMetric", declareMetricsTest)
genericOut, err := get()
assert.NoError(t, err)