Skip to content

Commit

Permalink
Fix bug in metadata route tests (sonic-net#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik authored and lguohan committed Nov 28, 2017
1 parent 4c3f8ed commit b18a915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meta/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2472,7 +2472,7 @@ void test_route_entry_get()
META_ASSERT_SUCCESS(status);

SWSS_LOG_NOTICE("zero attribute count");
attr.id = SAI_NEIGHBOR_ENTRY_ATTR_PACKET_ACTION;
attr.id = SAI_ROUTE_ENTRY_ATTR_PACKET_ACTION;
status = meta_sai_get_route_entry(&route_entry, 0, &attr, &dummy_success_sai_get_route_entry);
META_ASSERT_FAIL(status);

Expand Down Expand Up @@ -2598,7 +2598,7 @@ void test_route_entry_flow()
SWSS_LOG_NOTICE("set tests");

SWSS_LOG_NOTICE("correct packet action");
attr.id = SAI_NEIGHBOR_ENTRY_ATTR_PACKET_ACTION;
attr.id = SAI_ROUTE_ENTRY_ATTR_PACKET_ACTION;
attr.value.s32 = SAI_PACKET_ACTION_DROP;
status = meta_sai_set_route_entry(&route_entry, &attr, &dummy_success_sai_set_route_entry);
META_ASSERT_SUCCESS(status);
Expand Down

0 comments on commit b18a915

Please sign in to comment.