Skip to content

Commit

Permalink
Add 1m delay for exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
rhatgadkar-goog committed Oct 1, 2024
1 parent ff335ac commit f81e93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func TestDialerWithMetrics(t *testing.T) {
t.Fatal("expected Dial to fail, but got no error")
}

time.Sleep(100 * time.Millisecond) // allow exporter a chance to run
time.Sleep(1 * time.Minute) // allow exporter a chance to run

// success metrics
wantLastValueMetric(t, "alloydbconn/open_connections", spy.data(), 2)
Expand Down

0 comments on commit f81e93f

Please sign in to comment.