From 24f7ed172069235f14c09a3ec7cd2d36228ce6b7 Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Wed, 24 Apr 2024 18:18:17 +0200 Subject: [PATCH] Use legacy routing for test --- client/internal/routemanager/systemops_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/internal/routemanager/systemops_test.go b/client/internal/routemanager/systemops_test.go index e226dc3642e..05f86b2d130 100644 --- a/client/internal/routemanager/systemops_test.go +++ b/client/internal/routemanager/systemops_test.go @@ -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 {