mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/testutil: Fixing flakes due to >>leak" text/template/parse goroutines.
Examplar flake: https://travis-ci.com/github/etcd-io/etcd/jobs/388806782 ``` go test -timeout=5m -cpu=1 --run=Example ./client/... ok go.etcd.io/etcd/v3/client 0.085s testing: warning: no tests to run PASS Unexpected goroutines running after all test(s). 1 instances of: text/template/parse.(*lexer).emit(...) /usr/local/go/src/text/template/parse/lex.go:157 text/template/parse.lexText(...) /usr/local/go/src/text/template/parse/lex.go:269 +0x4f0 text/template/parse.(*lexer).run(...) /usr/local/go/src/text/template/parse/lex.go:230 +0x37 created by text/template/parse.lex /usr/local/go/src/text/template/parse/lex.go:223 +0x190 FAIL go.etcd.io/etcd/v3/client/integration 0.013s ```
This commit is contained in:
parent
73e5714bc5
commit
16eeedffaa
@ -131,6 +131,7 @@ func interestingGoroutines() (gs []string) {
|
||||
strings.Contains(stack, "go.etcd.io/etcd/v3/pkg/logutil.(*MergeLogger).outputLoop") ||
|
||||
strings.Contains(stack, "github.com/golang/glog.(*loggingT).flushDaemon") ||
|
||||
strings.Contains(stack, "created by runtime.gc") ||
|
||||
strings.Contains(stack, "created by text/template/parse.lex") ||
|
||||
strings.Contains(stack, "runtime.MHeap_Scavenger") {
|
||||
continue
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user