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