i believe this is how resync should work

This commit is contained in:
Conor Patrick
2018-05-26 17:41:13 -04:00
parent fdd767cf9f
commit 87429fb8a6
2 changed files with 19 additions and 5 deletions

View File

@@ -80,7 +80,6 @@ class Tester():
raise RuntimeError('Cbor is supposed to have payload')
except CtapError as e:
assert(e.code == CtapError.ERR.INVALID_LENGTH)
pass
print('PASS: no data cbor')
try:
@@ -88,9 +87,15 @@ class Tester():
raise RuntimeError('MSG is supposed to have payload')
except CtapError as e:
assert(e.code == CtapError.ERR.INVALID_LENGTH)
pass
print('PASS: no data msg')
try:
r = self.send_data(CTAPHID.INIT, '')
except CtapError as e:
print('resync fail: ', e)
return
print('PASS: resync')