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:
Andries Kruithof 2024-12-04 14:16:46 +01:00 committed by Benjamin Cabé
commit d64293b185

View file

@ -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];
}