Fix intermittent timing issue with metric values test

This commit is contained in:
Stephen Marshall
2018-06-08 16:22:32 +01:00
parent c409179f4a
commit 16abf50f9a

View File

@@ -387,7 +387,7 @@ func TestChangingValues(t *testing.T) {
conn.Close() conn.Close()
// Now actually get the metrics (after waiting for some to become available) // Now actually get the metrics (after waiting for some to become available)
time.Sleep(15 * time.Second) time.Sleep(25 * time.Second)
metrics = getMetrics(t, port) metrics = getMetrics(t, port)
if len(metrics) <= 0 { if len(metrics) <= 0 {
t.Fatal("Expected some metrics to be returned but had none...") t.Fatal("Expected some metrics to be returned but had none...")