mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
./pkg/testutil: wait for: (*watchGrpcStream).sendCloseSubstream(...) goroutines.
Should solve the problem of flakes documented here: https://github.com/etcd-io/etcd/issues/12372#issuecomment-706337969 ``` % (cd tests && env go test -short -timeout=3m -cpu=4 --race=true ./... -p=2) Unexpected goroutines running after all test(s). 1 instances of: go.etcd.io/etcd/v3/clientv3.(*watchGrpcStream).sendCloseSubstream(...) /go/src/go.etcd.io/etcd/clientv3/watch.go:464 +0x204 created by go.etcd.io/etcd/v3/clientv3.(*watchGrpcStream).closeSubstream /go/src/go.etcd.io/etcd/clientv3/watch.go:480 +0x21f FAIL go.etcd.io/etcd/tests/v3/integration/clientv3/examples 2.111s ``` The goroutine finishes automatically with timeout of 250ms.The change makes the test wait for it - if it still exists. Examples: https://travis-ci.com/github/etcd-io/etcd/jobs/397449189 https://travis-ci.com/github/etcd-io/etcd/jobs/397532784 https://travis-ci.com/github/etcd-io/etcd/jobs/397696506 https://travis-ci.com/github/etcd-io/etcd/jobs/403603526
This commit is contained in:
parent
97354af44b
commit
f2ee15a1e1
@ -67,6 +67,7 @@ func CheckAfterTest(d time.Duration) error {
|
||||
").noteClientGone(": "a closenotifier sender",
|
||||
").readLoop(": "a Transport",
|
||||
".grpc": "a gRPC resource",
|
||||
").sendCloseSubstream(": "a stream closing routine",
|
||||
}
|
||||
|
||||
var stacks string
|
||||
|
Loading…
x
Reference in New Issue
Block a user