Fix intermittent timing issue with metric values test
This commit is contained in:
@@ -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...")
|
||||||
|
|||||||
Reference in New Issue
Block a user