From 5ebdd304bab10a335967f996ab62dd2b3e00bb73 Mon Sep 17 00:00:00 2001 From: Mahak Mukhi Date: Wed, 8 Mar 2017 11:35:54 -0800 Subject: [PATCH] lint update and test fix --- examples/helloworld/mock/hw_test.go | 2 +- transport/transport_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/helloworld/mock/hw_test.go b/examples/helloworld/mock/hw_test.go index 6f7b4f8604f9..b63fec7ad63f 100644 --- a/examples/helloworld/mock/hw_test.go +++ b/examples/helloworld/mock/hw_test.go @@ -1,4 +1,4 @@ -package mock +package mock_test import ( "fmt" diff --git a/transport/transport_test.go b/transport/transport_test.go index 2e9674aa7069..05686fb65a28 100644 --- a/transport/transport_test.go +++ b/transport/transport_test.go @@ -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() }