Skip to content

Commit

Permalink
Fix Test_ConnectToDeadNSEUsecase (#1062)
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 authored Aug 11, 2021
1 parent eb7b86c commit 15a33a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/networkservice/chains/nsmgr/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,10 @@ func (s *nsmgrSuite) Test_ConnectToDeadNSEUsecase() {
refreshRequest := request.Clone()
refreshRequest.Connection = conn.Clone()

_, err = nsc.Request(reqCtx, refreshRequest)
refreshReqCtx, refreshReqCancel := context.WithTimeout(ctx, time.Second)
defer refreshReqCancel()

_, err = nsc.Request(refreshReqCtx, refreshRequest)
require.Error(t, err)
require.NoError(t, reqCtx.Err())

Expand Down

0 comments on commit 15a33a4

Please sign in to comment.