Skip to content

Commit 1ca16a2

Browse files
soulbirdsoulbird
andauthored
test: codecov flux (#44)
Co-authored-by: soulbird <[email protected]>
1 parent a05b55d commit 1ca16a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/core/components/watcher_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package components
22

33
import (
44
"testing"
5+
"time"
56

67
"github.com/api7/apisix-seed/internal/core/message"
78

@@ -171,4 +172,6 @@ func TestWatcherWatch(t *testing.T) {
171172
deleteMsg, err := message.NewMessage(givenKey, nil, 1, message.EventDelete)
172173
assert.Nil(t, err, caseDesc)
173174
watchCh <- []*message.Message{deleteMsg}
175+
176+
time.Sleep(3 * time.Second)
174177
}

0 commit comments

Comments
 (0)