Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Pol Henarejos <[email protected]>
  • Loading branch information
polhenarejos committed Aug 24, 2024
1 parent 5a31405 commit 8ba9116
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/pico-fido/test_055_hid.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,26 +196,25 @@ def test_check_busy_interleaved(self, device):

device.set_cid(cid2) # send ping on 2nd channel
device.send_raw("\x81\x00\x39")
cmd, r = device.recv_raw() # busy response
time.sleep(0.1)
device.send_raw("\x00")

cmd, r = device.recv_raw() # busy response

device.set_cid(cid1) # finish 1st channel ping
device.send_raw("\x00")

device.set_cid(cid2)

assert cmd == 0xBF
assert r[0] == CtapError.ERR.CHANNEL_BUSY

device.set_cid(cid1)
cmd, r = device.recv_raw() # ping response
assert cmd == 0x81
assert len(r) == 0x39
cmd, r = device.recv_raw() # ping response

def test_cid_0(self, device):
device.reset()
time.sleep(0.1)
device.set_cid(b"\x00\x00\x00\x00")
device.send_raw(
"\x86\x00\x08\x11\x22\x33\x44\x55\x66\x77\x88", cid="\x00\x00\x00\x00"
Expand Down

0 comments on commit 8ba9116

Please sign in to comment.