Skip to content

Commit

Permalink
Add gPortsOrch to directory for unittests
Browse files Browse the repository at this point in the history
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
  • Loading branch information
theasianpianist committed Feb 16, 2024
1 parent 64c9386 commit a4a542a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/mock_tests/flowcounterrouteorch_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ namespace flowcounterrouteorch_test

ASSERT_EQ(gPortsOrch, nullptr);
gPortsOrch = new PortsOrch(m_app_db.get(), m_state_db.get(), ports_tables, m_chassis_app_db.get());
gDirectory.set(gPortsOrch);

vector<string> vnet_tables = {
APP_VNET_RT_TABLE_NAME,
Expand Down
1 change: 1 addition & 0 deletions tests/mock_tests/routeorch_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ namespace routeorch_test

ASSERT_EQ(gPortsOrch, nullptr);
gPortsOrch = new PortsOrch(m_app_db.get(), m_state_db.get(), ports_tables, m_chassis_app_db.get());
gDirectory.set(gPortsOrch);

vector<string> flex_counter_tables = {
CFG_FLEX_COUNTER_TABLE_NAME
Expand Down

0 comments on commit a4a542a

Please sign in to comment.