diff --git a/tests/bsim/bluetooth/audio/src/bap_broadcast_sink_test.c b/tests/bsim/bluetooth/audio/src/bap_broadcast_sink_test.c index cdb818aa7e5..d7f59bc4e00 100644 --- a/tests/bsim/bluetooth/audio/src/bap_broadcast_sink_test.c +++ b/tests/bsim/bluetooth/audio/src/bap_broadcast_sink_test.c @@ -1088,8 +1088,8 @@ static void test_sink_encrypted_incorrect_code(void) test_broadcast_sync(BROADCAST_CODE); /* Wait for all to be started */ - printk("Waiting for streams to be started\n"); - for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { + printk("Waiting for %zu streams to be started\n", stream_sync_cnt); + for (size_t i = 0U; i < stream_sync_cnt; i++) { k_sem_take(&sem_stream_started, K_FOREVER); }