mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 17:38:39 +00:00
device_tests: fix failed test
This commit is contained in:
parent
b67322be2f
commit
bb5e49e452
@ -224,9 +224,10 @@ class TestMsgSigntxBch(TrezorTest):
|
|||||||
with pytest.raises(CallException) as exc:
|
with pytest.raises(CallException) as exc:
|
||||||
self.client.sign_tx('Bcash', [inp1, inp2], [out1], debug_processor=attack_processor)
|
self.client.sign_tx('Bcash', [inp1, inp2], [out1], debug_processor=attack_processor)
|
||||||
|
|
||||||
assert exc.value.args[0] == proto.FailureType.DataError
|
assert exc.value.args[0] in (proto.FailureType.ProcessError, proto.FailureType.DataError)
|
||||||
assert exc.value.args[1].endswith('Transaction has changed during signing')
|
assert exc.value.args[1].endswith('Transaction has changed during signing')
|
||||||
|
|
||||||
|
|
||||||
def test_attack_change_input(self):
|
def test_attack_change_input(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
self.client.set_tx_api(TxApiBcash)
|
self.client.set_tx_api(TxApiBcash)
|
||||||
|
Loading…
Reference in New Issue
Block a user