We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b461313 commit da8143fCopy full SHA for da8143f
itest/client_harness.go
@@ -119,6 +119,10 @@ func (c *clientHarness) start() error {
119
}
120
121
func (c *clientHarness) cleanup() error {
122
- c.cancel()
+ // We cancel the context after closing the connection, as it's used
123
+ // during the connection closing process. We defer the cancel to make
124
+ // sure it's always canceled.
125
+ defer c.cancel()
126
+
127
return c.grpcConn.Close()
128
0 commit comments