Skip to content

Commit

Permalink
datapath/linux: enable neighbor discovery in unit tests
Browse files Browse the repository at this point in the history
This option should be enabled in unit tests since it is also enabled as
a flag in the agent.

Fixes: cee08cd ("daemon: Make L2 neighbor discovery configurable.")
Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm committed Aug 3, 2021
1 parent 0a4a393 commit 6e02275
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/datapath/linux/node_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,11 @@ func (s *linuxPrivilegedIPv4OnlyTestSuite) TestArpPingHandling(c *check.C) {
runtime.LockOSThread()
defer runtime.UnlockOSThread()

prevEnableL2NeighDiscovery := option.Config.EnableL2NeighDiscovery
defer func() { option.Config.EnableL2NeighDiscovery = prevEnableL2NeighDiscovery }()

option.Config.EnableL2NeighDiscovery = true

prevStateDir := option.Config.StateDir
defer func() { option.Config.StateDir = prevStateDir }()

Expand Down

0 comments on commit 6e02275

Please sign in to comment.