Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon committed Jun 13, 2024
1 parent 2251486 commit fde1379
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/internal/routemanager/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,11 @@ func TestManagerUpdateRoutes(t *testing.T) {
_, _, err = routeManager.UpdateRoutes(testCase.inputSerial+uint64(len(testCase.inputInitRoutes)), testCase.inputRoutes)
require.NoError(t, err, "should update routes")

require.Len(t, routeManager.clientNetworks, testCase.clientNetworkWatchersExpectedAllowed, "client networks size should match")
expectedWatchers := testCase.clientNetworkWatchersExpected
if testCase.clientNetworkWatchersExpectedAllowed != 0 {
expectedWatchers = testCase.clientNetworkWatchersExpectedAllowed
}
require.Len(t, routeManager.clientNetworks, expectedWatchers, "client networks size should match")

if runtime.GOOS == "linux" && routeManager.serverRouter != nil {
sr := routeManager.serverRouter.(*defaultServerRouter)
Expand Down

0 comments on commit fde1379

Please sign in to comment.