Skip to content

Commit

Permalink
fix unstable test (#1488)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin authored Jul 19, 2023
1 parent eaf1d25 commit 7d9fde6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/networkservice/chains/nsmgr/select_forwarder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,6 @@ func Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath(t *testing.T) {
}

func Test_DiscoverForwarder_Should_KeepSelectedForwarderWhileConnectionIsFine(t *testing.T) {
t.Skip("this test is unstable")

t.Cleanup(func() { goleak.VerifyNone(t) })
ctx, cancel := context.WithTimeout(context.Background(), timeout)

Expand Down Expand Up @@ -367,7 +365,7 @@ func Test_DiscoverForwarder_Should_KeepSelectedForwarderWhileConnectionIsFine(t

domain.Registry.Restart()

domain.Nodes[0].NSMgr.Restart()
domain.Nodes[0].Forwarders[selectedForwarder].Restart()

require.Eventually(t, checkSecondRequestsReceived(counter.Requests), timeout, tick)
require.Equal(t, 1, counter.UniqueRequests())
Expand Down

0 comments on commit 7d9fde6

Please sign in to comment.