Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ohkinozomu committed Jul 25, 2024
1 parent ae18bfb commit d9d0ce0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/cluster/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package main

import (
"context"
"go.uber.org/goleak"
"net"
"os"
"sync"
"testing"
"time"

"go.uber.org/goleak"
)

func TestMain(m *testing.M) {
Expand Down Expand Up @@ -48,8 +49,11 @@ func TestLeaks(t *testing.T) {
goleak.IgnoreTopFunction("github.com/panjf2000/ants/v2.(*Pool).purgeStaleWorkers"),
goleak.IgnoreTopFunction("github.com/panjf2000/ants/v2.(*Pool).ticktock"),
// ignore the pprof http server goroutine
goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"))
goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"),

// ignore the glog flush daemon goroutine
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
)
}

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

0 comments on commit d9d0ce0

Please sign in to comment.