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 <andries.kruithof@nordicsemi.no>
This commit is contained in:
parent
30ad1901f3
commit
d64293b185
1 changed files with 4 additions and 0 deletions
|
@ -245,6 +245,10 @@ ZTEST_F(cap_commander_test_distribute_broadcast_code,
|
|||
{
|
||||
int err;
|
||||
|
||||
if (CONFIG_BT_MAX_CONN == 1) {
|
||||
ztest_test_skip();
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < ARRAY_SIZE(fixture->broadcast_code_member_params); i++) {
|
||||
fixture->broadcast_code_member_params[i].member.member = &fixture->conns[0];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue