mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix: coderd/prometheusmetrics wait for all metrics in require.Eventually (#5338)
This commit is contained in:
@ -224,7 +224,9 @@ func TestWorkspaces(t *testing.T) {
|
||||
if !ok {
|
||||
t.Fail()
|
||||
}
|
||||
require.Equal(t, count, int(metric.Gauge.GetValue()), "invalid count for %s", metric.Label[0].GetValue())
|
||||
if metric.Gauge.GetValue() != float64(count) {
|
||||
return false
|
||||
}
|
||||
sum += int(metric.Gauge.GetValue())
|
||||
}
|
||||
t.Logf("sum %d == total %d", sum, tc.Total)
|
||||
|
Reference in New Issue
Block a user