Skip to content

Commit

Permalink
Fix ut error
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sun <[email protected]>
  • Loading branch information
stephenxs committed Oct 24, 2020
1 parent 5b4360b commit 1c7a7d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mock_tests/portsorch_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ namespace portsorch_test

// Port should have been updated by BufferOrch->doTask
gPortsOrch->getPort("Ethernet0", port);
auto profile_id = (*BufferOrch::m_buffer_type_maps["BUFFER_PROFILE_TABLE"])[string("test_profile")];
auto profile_id = (*BufferOrch::m_buffer_type_maps["BUFFER_PROFILE"])[string("test_profile")].m_saiObjectId;
ASSERT_TRUE(profile_id != SAI_NULL_OBJECT_ID);
ASSERT_TRUE(port.m_priority_group_pending_profile[3] == profile_id);
ASSERT_TRUE(port.m_priority_group_pending_profile[4] == SAI_NULL_OBJECT_ID);
Expand Down

0 comments on commit 1c7a7d2

Please sign in to comment.