lint update and test fix
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
package mock
|
||||
package mock_test
|
||||
|
||||
import (
|
||||
"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)
|
||||
if err != nil {
|
||||
// Server clean-up.
|
||||
lis.Close()
|
||||
if conn, ok := <-done; ok {
|
||||
conn.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user