From 5c63b9b8b774917712bab165b37f360aab509828 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 20 Apr 2021 15:19:39 +0300 Subject: - Delay for the http plugin --- tests/plugins/metrics/metrics_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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) -- cgit v1.2.3