xds: workaround to deflake xds e2e tests (#4413)

This commit is contained in:
Easwar Swaminathan 2021-05-11 10:39:31 -07:00 committed by GitHub
parent b1940e15f6
commit 5f95ad6233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,11 @@ func TestMain(m *testing.M) {
// spawns the management server and is blocked on the call to `Serve()`.
leakcheck.RegisterIgnoreGoroutine("e2e.StartManagementServer")
// Remove this once https://github.com/envoyproxy/go-control-plane/pull/430
// is merged. For more information about this goroutine leak, see:
// https://github.com/envoyproxy/go-control-plane/issues/429.
leakcheck.RegisterIgnoreGoroutine("(*server).StreamHandler")
cancel, err := setupManagementServer()
if err != nil {
log.Printf("setupManagementServer() failed: %v", err)