We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d812dab commit 67a9171Copy full SHA for 67a9171
goroutine_test.go
@@ -42,7 +42,7 @@ func TestDelayOnceTimeout(t *testing.T) {
42
d := NewDelayOnce(time.Second*2, time.Second*5, true)
43
ctx := context.TODO()
44
wg := sync.WaitGroup{}
45
- for i := 0; i < 10; i++ {
+ for i := 0; i < 3; i++ {
46
log.Println(`Trigger key_timeout`)
47
isNew := d.DoWithState(ctx, `key_timeout`, func(isAbort func() bool) error {
48
defer wg.Done()
0 commit comments