Skip to content

Commit

Permalink
[test] ignore speculos disconnection errors when closing the app
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Jul 5, 2024
1 parent 3a886e5 commit ef86925
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/integration/stax/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from pathlib import Path
from contextlib import contextmanager
from .exceptions import (ChunkedEncodingError, ConnectionError)

from ragger.backend import SpeculosBackend
from ragger.backend.interface import RaisePolicy
Expand Down Expand Up @@ -108,7 +109,13 @@ def make_golden(self):

def quit(self):
if os.getenv("NOQUIT") == None:
self.welcome.quit()
try:
self.welcome.quit()
except ConnectionError:
pass
except ChunkedEncodingError:
pass

else:
input(f"PRESS ENTER to continue next test\n- You may need to reset to home")

Expand Down

0 comments on commit ef86925

Please sign in to comment.