@@ -542,9 +542,7 @@ func TestNotifierPaused(t *testing.T) {
542
542
t .Parallel ()
543
543
544
544
// setup
545
- ctx := testutil .Context (t , testutil .WaitLong )
546
- logger := slogtest .Make (t , & slogtest.Options {IgnoreErrors : true , IgnoredErrorIs : []error {}}).Leveled (slog .LevelDebug )
547
- db := dbmem .New () // FIXME https://github.com/coder/coder/pull/13863
545
+ ctx , logger , db := setupInMemory (t )
548
546
549
547
// Prepare the test
550
548
handler := & fakeHandler {}
@@ -571,7 +569,7 @@ func TestNotifierPaused(t *testing.T) {
571
569
require .Eventually (t , func () bool {
572
570
handler .mu .RLock ()
573
571
defer handler .mu .RUnlock ()
574
- return handler .succeeded == sid .String ()
572
+ return slices . Contains ( handler .succeeded , sid .String () )
575
573
}, testutil .WaitShort , testutil .IntervalFast )
576
574
577
575
// Pause the notifier.
@@ -601,7 +599,7 @@ func TestNotifierPaused(t *testing.T) {
601
599
require .Eventually (t , func () bool {
602
600
handler .mu .RLock ()
603
601
defer handler .mu .RUnlock ()
604
- return handler .succeeded == sid .String ()
602
+ return slices . Contains ( handler .succeeded , sid .String () )
605
603
}, testutil .WaitShort , testutil .IntervalFast )
606
604
}
607
605
0 commit comments