Skip to content

Commit d397aae

Browse files
kderdacarlescufi
authored andcommitted
tests: net: mld: update MLDv2 tests after changes
This commit changes the expectations to checking for state transitions in MLDv2 reports. Signed-off-by: Konrad Derda <[email protected]>
1 parent 9074c07 commit d397aae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/net/mld/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ static void add_mcast_route_and_verify(struct net_if *iface, struct in6_addr *ad
708708
zassert_ok(k_sem_take(&wait_data, K_MSEC(WAIT_TIME)), "Timeout while waiting for a report");
709709

710710
zassert_equal(info->records_count, 1, "Invalid number of reported addresses");
711-
zassert_equal(info->records[0].record_type, NET_IPV6_MLDv2_MODE_IS_EXCLUDE,
711+
zassert_equal(info->records[0].record_type, NET_IPV6_MLDv2_CHANGE_TO_EXCLUDE_MODE,
712712
"Invalid MLDv2 record type");
713713
zassert_mem_equal(&info->records[0].mcast_addr, addr,
714714
sizeof(struct in6_addr), "Invalid reported address");
@@ -731,7 +731,7 @@ static void del_mcast_route_and_verify(struct net_if *iface, struct in6_addr *ad
731731
zassert_ok(k_sem_take(&wait_data, K_MSEC(WAIT_TIME)), "Timeout while waiting for a report");
732732

733733
zassert_equal(info->records_count, 1, "Invalid number of reported addresses");
734-
zassert_equal(info->records[0].record_type, NET_IPV6_MLDv2_MODE_IS_INCLUDE,
734+
zassert_equal(info->records[0].record_type, NET_IPV6_MLDv2_CHANGE_TO_INCLUDE_MODE,
735735
"Invalid MLDv2 record type");
736736
zassert_mem_equal(&info->records[0].mcast_addr, addr,
737737
sizeof(struct in6_addr), "Invalid reported address");

0 commit comments

Comments
 (0)