lint update and test fix
This commit is contained in:
@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user