We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e3cf3 commit 0a1664fCopy full SHA for 0a1664f
cron_test.go
@@ -46,6 +46,9 @@ func Test_retry(t *testing.T) {
46
}, 5*time.Second, 10*time.Millisecond)
47
ok.Store(true)
48
triggered := helper.triggered.Load()
49
+ assert.EventuallyWithT(t, func(c *assert.CollectT) {
50
+ assert.Equal(c, triggered+1, helper.triggered.Load())
51
+ }, time.Second*5, time.Millisecond*10)
52
<-time.After(3 * time.Second)
53
assert.Equal(t, triggered+1, helper.triggered.Load())
54
}
0 commit comments