Skip to content

Commit

Permalink
Move intf_nbr_tables in AgentNeighborTests to cmdlineoverrides
Browse files Browse the repository at this point in the history
Summary:
Move interface neighbor tables command line flag in AgentNeighborTests
to the cmdlineoverrides() function.

This was being set in setup() but overridden when the superclass
cmdlineoverrides() was called.

Reviewed By: daiwei1983

Differential Revision: D69198222

fbshipit-source-id: 935c0d8f2901d21c82519cd9459c400b5a32a47d
  • Loading branch information
jleung51 authored and facebook-github-bot committed Feb 6, 2025
1 parent 583134a commit 360b2f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fboss/agent/test/agent_hw_tests/AgentNeighborTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ class AgentNeighborTest : public AgentHwTest {
NdpTable>;

protected:
void SetUp() override {
void setCmdLineFlagOverrides() const override {
FLAGS_intf_nbr_tables = isIntfNbrTable;
AgentHwTest::SetUp();
AgentHwTest::setCmdLineFlagOverrides();
}

std::vector<production_features::ProductionFeature>
Expand Down

0 comments on commit 360b2f3

Please sign in to comment.