Skip to content

Commit

Permalink
Fix success request waiting for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Belov <artem.belov@xored.com>
  • Loading branch information
Artem Belov committed Mar 9, 2021
1 parent 16d1029 commit 59e2b7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/networkservice/chains/nsmgr/server_heal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ func testNSMGRHealNSMgr(t *testing.T, nodeNum int, customConfig []*sandbox.NodeC
require.NoError(t, err)

// Wait Cross NSE expired and reconnecting through the new Cross NSE
require.Eventually(t, checkSecondRequestsReceived(counter.UniqueRequests), timeout, tick)
require.Eventually(t, checkSecondRequestsReceived(func() int {
return int(atomic.LoadInt32(&counter.Requests))
}), timeout, tick)

// Close.
closes := atomic.LoadInt32(&counter.Closes)
Expand Down

0 comments on commit 59e2b7a

Please sign in to comment.