Skip to content

Commit d64293b

Browse files
Andries Kruithofkartben
authored andcommitted
Bluetooth: Audio: unittest fails when BT_MAX_CONN = 1
There is a unittest to verify that the distribute broadcast code procedure is not called with the same peer twice. This test requires a minimum of two connections, so we disable this test when only 1 connection can be made Signed-off-by: Andries Kruithof <[email protected]>
1 parent 30ad190 commit d64293b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/bluetooth/audio/cap_commander/src/test_distribute_broadcast_code.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ ZTEST_F(cap_commander_test_distribute_broadcast_code,
245245
{
246246
int err;
247247

248+
if (CONFIG_BT_MAX_CONN == 1) {
249+
ztest_test_skip();
250+
}
251+
248252
for (size_t i = 0; i < ARRAY_SIZE(fixture->broadcast_code_member_params); i++) {
249253
fixture->broadcast_code_member_params[i].member.member = &fixture->conns[0];
250254
}

0 commit comments

Comments
 (0)