From c20de56fa4ea5263370206b1414f7f9720da0013 Mon Sep 17 00:00:00 2001 From: nkryuchkov Date: Wed, 28 Aug 2019 01:27:01 +0300 Subject: [PATCH] Fix CloseLoop test --- pkg/setup/node_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/setup/node_test.go b/pkg/setup/node_test.go index 20b0699cfd..0d1b1e2eb7 100644 --- a/pkg/setup/node_test.go +++ b/pkg/setup/node_test.go @@ -311,11 +311,7 @@ func TestNode(t *testing.T) { }() // client_2 accepts close request. - listener, err := clients[2].Listen(clients[2].Addr.Port) - require.NoError(t, err) - defer func() { require.NoError(t, listener.Close()) }() - - tp, err := listener.AcceptTransport() + tp, err := clients[2].Listener.AcceptTransport() require.NoError(t, err) defer func() { require.NoError(t, tp.Close()) }()