Skip to content

Commit c3f490f

Browse files
committed
test, trezor: Check for warnings rather than needs_passphrase_sent
Since bitcoin-core#644, not providing a passphrase to a trezor that has passphrases enabled will only result in a warning rather than setting `needs_passphrase_set` to false.
1 parent 203c844 commit c3f490f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_trezor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def test_passphrase(self):
340340
result = self.do_command(self.dev_args + ['enumerate'])
341341
for dev in result:
342342
if dev['type'] == 'trezor' and dev['path'] == 'udp:127.0.0.1:21324':
343-
self.assertTrue(dev['needs_passphrase_sent'])
343+
self.assertIn("warnings", dev)
344344
break
345345
else:
346346
self.fail("Did not enumerate device")

0 commit comments

Comments
 (0)