mirror of https://github.com/grpc/grpc-go.git
lint update and test fix
This commit is contained in:
parent
0d5b22c2a7
commit
5ebdd304ba
|
|
@ -1,4 +1,4 @@
|
||||||
package mock
|
package mock_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
||||||
|
|
@ -293,6 +293,7 @@ func setUpWithNoPingServer(t *testing.T, copts ConnectOptions, done chan net.Con
|
||||||
tr, err := NewClientTransport(context.Background(), TargetInfo{Addr: lis.Addr().String()}, copts)
|
tr, err := NewClientTransport(context.Background(), TargetInfo{Addr: lis.Addr().String()}, copts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Server clean-up.
|
// Server clean-up.
|
||||||
|
lis.Close()
|
||||||
if conn, ok := <-done; ok {
|
if conn, ok := <-done; ok {
|
||||||
conn.Close()
|
conn.Close()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue