Skip to content

Commit

Permalink
Merge pull request #37 from LedgerHQ/xch/fix-tests
Browse files Browse the repository at this point in the history
tests/speculos/conftest.py: Fix apdu port with updated ragger
  • Loading branch information
xchapron-ledger authored May 2, 2024
2 parents da9c936 + dc2f757 commit 699a5dd
Show file tree
Hide file tree
Showing 9 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
Binary file modified tests/speculos/snapshots/stax/test_fido_screens_settings/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/speculos/snapshots/stax/test_fido_screens_settings/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/speculos/snapshots/stax/test_fido_screens_settings/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/speculos/snapshots/stax/test_fido_screens_settings/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/speculos/snapshots/stax/test_u2f_screens_idle/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/speculos/snapshots/stax/test_u2f_screens_idle/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 699a5dd

Please sign in to comment.