Skip to content

Commit 399b995

Browse files
committed
Fix CI
1 parent ae18bfb commit 399b995

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cmd/cluster/main_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package main
22

33
import (
44
"context"
5-
"go.uber.org/goleak"
65
"net"
76
"os"
87
"sync"
98
"testing"
109
"time"
10+
11+
"go.uber.org/goleak"
1112
)
1213

1314
func TestMain(m *testing.M) {
@@ -48,8 +49,10 @@ func TestLeaks(t *testing.T) {
4849
goleak.IgnoreTopFunction("github.com/panjf2000/ants/v2.(*Pool).purgeStaleWorkers"),
4950
goleak.IgnoreTopFunction("github.com/panjf2000/ants/v2.(*Pool).ticktock"),
5051
// ignore the pprof http server goroutine
51-
goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"))
52-
52+
goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"),
53+
// ignore the glog flush daemon goroutine
54+
goleak.IgnoreAnyFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
55+
)
5356
}
5457

5558
// hasRedis does a TCP connect to port 6379 to see if there is a redis server running on localhost.

0 commit comments

Comments
 (0)