Skip to content

Commit

Permalink
Fix unit test error due to unable to load Lua script in slave docker
Browse files Browse the repository at this point in the history
Signed-off-by: stephens <stephens@contoso.com>
  • Loading branch information
stephens committed Apr 19, 2024
1 parent bac887f commit 4d94f35
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/mock_tests/switchorch_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ namespace switchorch_test
_hook_sai_apis();
initSwitchOrch();

ASSERT_TRUE(gSwitchOrch->m_eliminateEventsTimer != nullptr);

vector<string> ts;
std::deque<KeyOpFieldsValuesTuple> entries;
set<sai_switch_asic_sdk_health_category_t> all_categories({
Expand Down Expand Up @@ -242,8 +240,6 @@ namespace switchorch_test
{
initSwitchOrch();

ASSERT_TRUE(gSwitchOrch->m_eliminateEventsTimer != nullptr);

string value;
gSwitchOrch->m_switchTable.hget("switch", SWITCH_CAPABILITY_TABLE_ASIC_SDK_HEALTH_EVENT_CAPABLE, value);
ASSERT_EQ(value, "true");
Expand All @@ -263,8 +259,6 @@ namespace switchorch_test
_hook_sai_apis();
initSwitchOrch();

ASSERT_EQ(gSwitchOrch->m_eliminateEventsTimer, nullptr);

string value;
gSwitchOrch->m_switchTable.hget("switch", SWITCH_CAPABILITY_TABLE_ASIC_SDK_HEALTH_EVENT_CAPABLE, value);
ASSERT_EQ(value, "false");
Expand Down Expand Up @@ -297,8 +291,6 @@ namespace switchorch_test
{
initSwitchOrch();

ASSERT_TRUE(gSwitchOrch->m_eliminateEventsTimer != nullptr);

sai_timespec_t timestamp = {.tv_sec = 1701160447, .tv_nsec = 538710245};
sai_switch_health_data_t data = {.data_type = SAI_HEALTH_DATA_TYPE_GENERAL};
vector<uint8_t> data_from_sai({100, 101, 115, 99, 114, 105, 112, 116, 105, 245, 111, 110, 245, 10, 123, 125, 100, 100});
Expand Down

0 comments on commit 4d94f35

Please sign in to comment.