Commit d397aae0 authored by Konrad Derda's avatar Konrad Derda Committed by Carles Cufi
Browse files

tests: net: mld: update MLDv2 tests after changes

This commit changes the expectations to checking for state transitions
in MLDv2 reports.

Signed-off-by: default avatarKonrad Derda <konrad.derda@nordicsemi.no>
parent 9074c07a
Loading
Loading
Loading
Loading
+2 −2
Changes for tests/net/mld/src/main.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -708,7 +708,7 @@ static void add_mcast_route_and_verify(struct net_if *iface, struct in6_addr *ad
	zassert_ok(k_sem_take(&wait_data, K_MSEC(WAIT_TIME)), "Timeout while waiting for a report");

	zassert_equal(info->records_count, 1, "Invalid number of reported addresses");
	zassert_equal(info->records[0].record_type, NET_IPV6_MLDv2_MODE_IS_EXCLUDE,
	zassert_equal(info->records[0].record_type, NET_IPV6_MLDv2_CHANGE_TO_EXCLUDE_MODE,
		      "Invalid MLDv2 record type");
	zassert_mem_equal(&info->records[0].mcast_addr, addr,
			  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
	zassert_ok(k_sem_take(&wait_data, K_MSEC(WAIT_TIME)), "Timeout while waiting for a report");

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