Skip to content

Commit 5db00ce

Browse files
committed
Extend wait period for test; drive-by fix for possibly flaky test
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent a5e4bf3 commit 5db00ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

coderd/notifications/metrics_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ func TestPendingUpdatesMetric(t *testing.T) {
263263
interceptor.proceed.Broadcast()
264264

265265
// Validate that the store synced the expected number of updates.
266-
require.Eventually(t, func() bool {
266+
require.Eventuallyf(t, func() bool {
267267
return syncer.sent.Load() == 1 && syncer.failed.Load() == 1
268-
}, testutil.WaitShort, testutil.IntervalFast)
268+
}, testutil.WaitLong, testutil.IntervalFast,
269+
"sent: %d, failed: %d", syncer.sent.Load(), syncer.failed.Load())
269270

270271
// Wait for the updates to be synced and the metric to reflect that.
271272
require.Eventually(t, func() bool {

0 commit comments

Comments
 (0)