lint update and test fix

This commit is contained in:
Mahak Mukhi
2017-03-08 11:35:54 -08:00
parent 0d5b22c2a7
commit 5ebdd304ba
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
package mock package mock_test
import ( import (
"fmt" "fmt"

View File

@ -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()
} }