Skip to content

Commit

Permalink
tests/speculos/conftest.py: Fix apdu port with updated ragger
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Chapron committed May 2, 2024
1 parent da9c936 commit d32f5b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/speculos/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class LedgerCtapHidConnection(CtapHidConnection):
to speculos raw socket.
"""
def __init__(self, transport, debug=False):
self.sock = socket.create_connection(('127.0.0.1', 9999))
self.sock = socket.create_connection(('127.0.0.1', 5001))
self.u2f_hid_endpoint = (transport.upper() == "U2F")
self.debug = debug

Expand Down
2 changes: 1 addition & 1 deletion tests/speculos/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def prepare_speculos_args(root_pytest_dir: Path, firmware: Firmware, display: bo
if display:
speculos_args += ["--display", "qt"]

device = firmware.device
device = firmware.name
if device == "nanosp":
device = "nanos2"

Expand Down

0 comments on commit d32f5b6

Please sign in to comment.