MCPcopy
hub / github.com/grpc/grpc-go / awaitNewConnLogOutput

Function awaitNewConnLogOutput

test/end2end_test.go:5080–5082  ·  view source on GitHub ↗

awaitNewConnLogOutput waits for any of grpc.NewConn's goroutines to terminate, if they're still running. It spams logs with this message. We wait for it so our log filter is still active. Otherwise the "defer restore()" at the top of various test functions restores our log filter and then the gorou

()

Source from the content-addressed store, hash-verified

5078// active. Otherwise the "defer restore()" at the top of various test
5079// functions restores our log filter and then the goroutine spams.
5080func awaitNewConnLogOutput() {
5081 awaitLogOutput(50*time.Millisecond, "grpc: the client connection is closing; please retry")
5082}
5083
5084func awaitLogOutput(maxWait time.Duration, phrase string) {
5085 pb := []byte(phrase)

Callers 8

testServerGoAwayFunction · 0.85
testTimeoutOnDeadServerFunction · 0.85
testFailFastFunction · 0.85
testCancelFunction · 0.85

Calls 1

awaitLogOutputFunction · 0.85

Tested by

no test coverage detected