Skip to content

Commit

Permalink
Fix UT build
Browse files Browse the repository at this point in the history
  • Loading branch information
sridhartigera committed May 29, 2024
1 parent 2532a34 commit 06e7edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions felix/bpf/ut/attach_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func runAttachTest(t *testing.T, ipv6Enabled bool) {
}

hostep1State = ifstateMap[ifstate.NewKey(uint32(host1.Attrs().Index))]
Expect(hostep1State.Flags()).To(Equal(ifstate.FlgIPv4Ready | ifstate.FlgHost))
Expect(hostep1State.Flags()).To(Equal(ifstate.FlgIPv4Ready | ifstate.FlgHEP))

if ipv6Enabled {
// IPv6 address update
Expand Down Expand Up @@ -216,7 +216,7 @@ func runAttachTest(t *testing.T, ipv6Enabled bool) {
Expect(hostep1State.IngressPolicyV6()).NotTo(Equal(-1))
Expect(hostep1State.EgressPolicyV6()).NotTo(Equal(-1))
Expect(hostep1State.XDPPolicyV6()).NotTo(Equal(-1))
Expect(hostep1State.Flags()).To(Equal(ifstate.FlgIPv4Ready | ifstate.FlgIPv6Ready | ifstate.FlgHost))
Expect(hostep1State.Flags()).To(Equal(ifstate.FlgIPv4Ready | ifstate.FlgIPv6Ready | ifstate.FlgHEP))
Expect(ifstateMap).To(HaveKey(ifstate.NewKey(uint32(workload0.Attrs().Index))))
workloadep0State := ifstateMap[ifstate.NewKey(uint32(workload0.Attrs().Index))]
Expect(workloadep0State.Flags()).To(Equal(ifstate.FlgWEP | ifstate.FlgIPv4Ready | ifstate.FlgIPv6Ready))
Expand Down

0 comments on commit 06e7edb

Please sign in to comment.