Skip to content

Commit b18a915

Browse files
kcudniklguohan
authored andcommitted
Fix bug in metadata route tests (sonic-net#267)
1 parent 4c3f8ed commit b18a915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meta/tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,7 +2472,7 @@ void test_route_entry_get()
24722472
META_ASSERT_SUCCESS(status);
24732473

24742474
SWSS_LOG_NOTICE("zero attribute count");
2475-
attr.id = SAI_NEIGHBOR_ENTRY_ATTR_PACKET_ACTION;
2475+
attr.id = SAI_ROUTE_ENTRY_ATTR_PACKET_ACTION;
24762476
status = meta_sai_get_route_entry(&route_entry, 0, &attr, &dummy_success_sai_get_route_entry);
24772477
META_ASSERT_FAIL(status);
24782478

@@ -2598,7 +2598,7 @@ void test_route_entry_flow()
25982598
SWSS_LOG_NOTICE("set tests");
25992599

26002600
SWSS_LOG_NOTICE("correct packet action");
2601-
attr.id = SAI_NEIGHBOR_ENTRY_ATTR_PACKET_ACTION;
2601+
attr.id = SAI_ROUTE_ENTRY_ATTR_PACKET_ACTION;
26022602
attr.value.s32 = SAI_PACKET_ACTION_DROP;
26032603
status = meta_sai_set_route_entry(&route_entry, &attr, &dummy_success_sai_set_route_entry);
26042604
META_ASSERT_SUCCESS(status);

0 commit comments

Comments
 (0)