Skip to content

Commit

Permalink
fix test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Chapron committed Nov 18, 2022
1 parent 552cd8d commit 1c47da4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/functional/test_eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from ragger.backend import SpeculosBackend
from ragger.backend.interface import RAPDU, RaisePolicy
from ragger.navigator import NavInsID, NavIns
from ragger.utils import pack_derivation_path
from ragger.utils import pack_derivation_path, split_message

from apps.eos import EosClient, ErrorType
from apps.eos import EosClient, ErrorType, MAX_CHUNK_SIZE
from apps.eos_transaction_builder import Transaction


Expand Down Expand Up @@ -173,7 +173,7 @@ def test_eos_transaction_linkauth_ok(test_name, client, navigator):
def test_eos_transaction_newaccount_ok(test_name, client, navigator):
signing_digest, message = load_transaction_from_file("transaction_newaccount.json")
eos = EosClient(client)
messages = eos.split_message(EOS_PATH + message)
messages = split_message(EOS_PATH + message, MAX_CHUNK_SIZE)
assert len(messages) == 2

with eos._send_async_sign_message(messages[0], True):
Expand Down Expand Up @@ -206,7 +206,7 @@ def test_eos_transaction_sellram_ok(test_name, client, navigator):
def test_eos_transaction_unknown_ok(test_name, client, navigator):
signing_digest, message = load_transaction_from_file("transaction_unknown.json")
eos = EosClient(client)
messages = eos.split_message(EOS_PATH + message)
messages = split_message(EOS_PATH + message, MAX_CHUNK_SIZE)

with eos._send_async_sign_message(messages[0], True):
client.raise_policy = RaisePolicy.RAISE_NOTHING
Expand Down

0 comments on commit 1c47da4

Please sign in to comment.