Skip to content

Commit

Permalink
Add a few more expected TestMain goroutines to ignore list
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed May 26, 2024
1 parent 3839e90 commit d2fea8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions go/test/utils/noleak.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ func ensureNoGoroutines() error {
goleak.IgnoreTopFunction("vitess.io/vitess/go/pools/smartconnpool.(*ConnPool[...]).runWorker.func1"),
goleak.IgnoreTopFunction("vitess.io/vitess/go/stats.(*Rates).track"),
goleak.IgnoreTopFunction("vitess.io/vitess/go/timer.(*Timer).run"),
goleak.IgnoreTopFunction("vitess.io/vitess/go/vt/srvtopo.NewResilientServer.NewSrvVSchemaWatcher.func1"),
goleak.IgnoreTopFunction("vitess.io/vitess/go/vt/srvtopo.NewResilientServer.NewSrvVSchemaWatcher.func2"),
goleak.IgnoreTopFunction("vitess.io/vitess/go/vt/topo/memorytopo.(*Conn).Watch.func1"),
goleak.IgnoreTopFunction("vitess.io/vitess/go/vt/topo.(*Server).WatchSrvVSchema.func1"),
goleak.IgnoreTopFunction("testing.tRunner.func1"),
}

Expand Down
5 changes: 0 additions & 5 deletions go/vt/vttablet/tabletmanager/vreplication/vplayer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ func TestStallHandler(t *testing.T) {
ctx, cancel := context.WithTimeout(lctx, tme)
defer cancel()

ovpd := vplayerProgressDeadline
vplayerProgressDeadline = tme / 10
defer func() {
vplayerProgressDeadline = ovpd
}()
concurrency := 10000
dl := time.Duration(10 * time.Second)

Expand Down

0 comments on commit d2fea8d

Please sign in to comment.