Skip to content

Commit

Permalink
fix(tests): fix screen recording for persistance tests on THP builds
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
M1nd3r committed Feb 3, 2025
1 parent 2b3a63d commit 5410322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ui_tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from _pytest.outcomes import Failed

from trezorlib.debuglink import TrezorClientDebugLink as Client
from trezorlib.client import ProtocolVersion

from . import common
from .common import SCREENS_DIR, UI_TESTS_DIR, TestCase, TestResult
Expand Down Expand Up @@ -61,7 +62,8 @@ def screen_recording(
yield
finally:
client.ensure_open()
client.sync_responses()
if client.protocol_version == ProtocolVersion.PROTOCOL_V1:
client.sync_responses()
# Wait for response to Initialize, which gives the emulator time to catch up
# and redraw the homescreen. Otherwise there's a race condition between that
# and stopping recording.
Expand Down

0 comments on commit 5410322

Please sign in to comment.