Skip to content

Commit

Permalink
e2e: fix typo in serviceCIDR case
Browse files Browse the repository at this point in the history
Signed-off-by: cyclinder <[email protected]>
  • Loading branch information
cyclinder committed Jan 31, 2024
1 parent e03f8ff commit 5e998cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e/spidercoordinator/spidercoordinator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ var _ = Describe("SpiderCoordinator", Label("spidercoordinator", "overlay"), Ser
Expect(err).NotTo(HaveOccurred(), "failed to get SpiderCoordinator, error is %v", err)

originalServiceCIDR := spc.Status.ServiceCIDR
GinkgoWriter.Printf("serviceCIDR from spidercoordinator: %v,%v\n", spc.Status.ServiceCIDR)
GinkgoWriter.Printf("serviceCIDR from original spidercoordinator: %v\n", spc.Status.ServiceCIDR)

// create a serviceCIDR resource
v4Svc := "10.234.0.0/16"
Expand Down Expand Up @@ -530,7 +530,8 @@ var _ = Describe("SpiderCoordinator", Label("spidercoordinator", "overlay"), Ser
return false
}

if reflect.DeepEqual(spc.Status.ServiceCIDR, originalServiceCIDR) {
if !reflect.DeepEqual(spc.Status.ServiceCIDR, originalServiceCIDR) {
GinkgoWriter.Printf("Get spidercoordinator ServiceCIDR: %v\n", spc.Status.ServiceCIDR)
return false
}

Expand Down

0 comments on commit 5e998cf

Please sign in to comment.