From d32f5b63de736657bac79bdff0845daffe9b8f3d Mon Sep 17 00:00:00 2001 From: Xavier Chapron Date: Mon, 15 Apr 2024 14:21:47 +0200 Subject: [PATCH] tests/speculos/conftest.py: Fix apdu port with updated ragger --- tests/speculos/client.py | 2 +- tests/speculos/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/speculos/client.py b/tests/speculos/client.py index 06a8bc5f..e09cc98f 100644 --- a/tests/speculos/client.py +++ b/tests/speculos/client.py @@ -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 diff --git a/tests/speculos/conftest.py b/tests/speculos/conftest.py index 34ab150f..06175ba0 100644 --- a/tests/speculos/conftest.py +++ b/tests/speculos/conftest.py @@ -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"