Skip to content

Commit

Permalink
fix an UT
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 committed Nov 4, 2024
1 parent 14f4973 commit 9f20666
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cns/middlewares/k8sSwiftV2_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,10 @@ func TestSetRoutesFailure(t *testing.T) {
}

func TestAddRoutes(t *testing.T) {
middleware := K8sSWIFTv2Middleware{Cli: mock.NewClient()}
cidrs := []string{"10.0.0.0/24", "20.0.0.0/24"}
gatewayIP := "192.168.1.1"
routes := addRoutes(cidrs, gatewayIP)
routes := middleware.addRoutes(cidrs, gatewayIP)
expectedRoutes := []cns.Route{
{
IPAddress: "10.0.0.0/24",
Expand Down

0 comments on commit 9f20666

Please sign in to comment.