Skip to content

Commit e9d2717

Browse files
committed
ut fix
1 parent 2e4b8d9 commit e9d2717

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cns/middlewares/k8sSwiftV2_linux_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,10 @@ func TestSetRoutesSuccess(t *testing.T) {
343343
} else {
344344
assert.Equal(t, ipInfo.SkipDefaultRoutes, false)
345345
}
346-
347346
}
347+
348348
for i := range podIPInfo {
349-
reflect.DeepEqual(t, podIPInfo[i].Routes, desiredPodIPInfo[i].Routes)
349+
reflect.DeepEqual(podIPInfo[i].Routes, desiredPodIPInfo[i].Routes)
350350
}
351351
}
352352

@@ -382,7 +382,7 @@ func TestAddRoutes(t *testing.T) {
382382
middleware := K8sSWIFTv2Middleware{Cli: mock.NewClient()}
383383
cidrs := []string{"10.0.0.0/24", "20.0.0.0/24"}
384384
gatewayIP := "192.168.1.1"
385-
routes := middleware.addRoutes(cidrs, gatewayIP)
385+
routes := middleware.AddRoutes(cidrs, gatewayIP)
386386
expectedRoutes := []cns.Route{
387387
{
388388
IPAddress: "10.0.0.0/24",

0 commit comments

Comments
 (0)