Skip to content

Commit cce11a5

Browse files
PavelVPVcfriedt
authored andcommitted
tests: bsim: bluetooth: mesh: Fix brg duplicate filtering test
Add delay to avoid missed packet by tester. This fixes brg_subnet_duplicate_filtering test. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
1 parent 1ab799f commit cce11a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/bsim/bluetooth/mesh/src/test_brg.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,9 @@ static void check_subnet_list_get(struct bt_mesh_brg_cfg_filter_netkey filter, u
837837

838838
net_buf_simple_init(rsp.list, 0);
839839

840+
/* Sleep here to avoid packet collision. */
841+
k_sleep(K_MSEC(100));
842+
840843
LOG_INF("Getting subnet list, filter = (filter: %d, subnet: %d), start_idx = %d",
841844
filter.filter, filter.net_idx, start_idx);
842845
ASSERT_OK(bt_mesh_brg_cfg_cli_subnets_get(0, BRIDGE_ADDR, filter, start_idx, &rsp));

0 commit comments

Comments
 (0)