Skip to content

Commit

Permalink
Add missed wait
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
  • Loading branch information
Vladimir Popov committed Apr 27, 2021
1 parent bfb33db commit 43d60ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/networkservice/chains/nsmgr/nsmgr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func (s *nsmgrSuite) Test_Remote_ParallelUsecase() {
require.Equal(t, int32(1), atomic.LoadInt32(&counter.Closes))

// Endpoint unregister
unregisterWG.Wait()
_, err = s.domain.Nodes[0].EndpointRegistryClient.Unregister(ctx, nseReg)
require.NoError(t, err)
}
Expand Down Expand Up @@ -240,6 +241,7 @@ func (s *nsmgrSuite) Test_Remote_BusyEndpointsUsecase() {
require.Equal(t, int32(1), atomic.LoadInt32(&counter.Closes))

// Endpoint unregister
unregisterWG.Wait()
for i := 0; i < len(nsesReg); i++ {
_, err = s.domain.Nodes[1].EndpointRegistryClient.Unregister(ctx, nsesReg[i])
require.NoError(t, err)
Expand Down

0 comments on commit 43d60ec

Please sign in to comment.