Explorar o código

testutil: check for grpc resources in AfterTest

gRPC leaks only show up at the final leak check, making it difficult to
determine which test is causing the leak.
Anthony Romano %!s(int64=8) %!d(string=hai) anos
pai
achega
997e83f8ea
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pkg/testutil/leak.go

+ 1 - 0
pkg/testutil/leak.go

@@ -76,6 +76,7 @@ func CheckAfterTest(d time.Duration) error {
 		"net.(*netFD).connect(":                        "a timing out dial",
 		").noteClientGone(":                            "a closenotifier sender",
 		").readLoop(":                                  "a Transport",
+		".grpc":                                        "a gRPC resource",
 	}
 
 	var stacks string