Skip to content

Commit

Permalink
test_ssp: Perform role switch only when required
Browse files Browse the repository at this point in the history
Role switch fails with an exception if the requested role
is the same as the currently held role (as per specification)
  • Loading branch information
hchataing authored and uael committed May 30, 2023
1 parent 16164fd commit 3343662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cases/security_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async def bredr_connect(
self.ref.log.info(
f"Role switch to: {'`CENTRAL`' if role == HCI_CENTRAL_ROLE else '`PERIPHERAL`'}"
)
await ref_dut_raw.switch_role(role)
await ref_dut_raw.switch_role(role)

# Pairing.
if pair == 'incoming_pairing':
Expand Down

0 comments on commit 3343662

Please sign in to comment.