Skip to content

Commit

Permalink
Make the wait longer to ensure that async call has completed
Browse files Browse the repository at this point in the history
This also aligns the interval with rest of the test code
  • Loading branch information
8ma10s committed Oct 17, 2024
1 parent ea65873 commit fa5dda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature_flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ func Test_DisableNotificationOnInit(t *testing.T) {
assert.NoError(t, err)
defer gffClient.Close()

time.Sleep(1 * time.Second) // wait for the goroutine to call Notify()
time.Sleep(2 * time.Second) // wait for the goroutine to call Notify()
assert.Equal(t, tt.expectedNotifyCalled, mockNotifier.notifyCalled)
})
}
Expand Down

0 comments on commit fa5dda7

Please sign in to comment.