Commit 9e58ad31 authored by Emil Gydesen's avatar Emil Gydesen Committed by Carles Cufi
Browse files

tests: Bluetooth: BAP Broadcast sink RX fail fix



Added an additional check before failing a BSIM test
on ISO error, so that when we stop the broadcast source
(after the sink have received the expected data), lost data
does not trigger a test failure.

Signed-off-by: default avatarEmil Gydesen <emil.gydesen@nordicsemi.no>
parent 8b2dd61e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -280,7 +280,11 @@ static void recv_cb(struct bt_bap_stream *stream,
	}

	if (info->flags & BT_ISO_FLAGS_ERROR) {
		/* Fail the test if we have not received what we expected */
		if (!TEST_FLAG(flag_received)) {
			FAIL("ISO receive error\n");
		}

		return;
	}