Skip to content

Commit

Permalink
Fix CloseLoop test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Aug 27, 2019
1 parent 2e4dc00 commit c20de56
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/setup/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()) }()

Expand Down

0 comments on commit c20de56

Please sign in to comment.