Skip to content

Commit

Permalink
Use legacy routing for test
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal committed Apr 24, 2024
1 parent 0966c16 commit 24f7ed1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/internal/routemanager/systemops_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,15 @@ func TestAddExistAndRemoveRoute(t *testing.T) {
}

for n, testCase := range testCases {

var buf bytes.Buffer
log.SetOutput(&buf)
defer func() {
log.SetOutput(os.Stderr)
}()
t.Run(testCase.name, func(t *testing.T) {
t.Setenv("NB_USE_LEGACY_ROUTING", "true")

peerPrivateKey, _ := wgtypes.GeneratePrivateKey()
newNet, err := stdnet.NewNet()
if err != nil {
Expand Down

0 comments on commit 24f7ed1

Please sign in to comment.