Skip to content

Commit

Permalink
pyportaltest: Disable the timeouts for the session closed signal test
Browse files Browse the repository at this point in the history
If our test machine is under load let's keep waiting a bit longer for
the signal to arrive.

Closes #166
  • Loading branch information
whot committed Sep 10, 2024
1 parent 6c9f664 commit da5cc13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/pyportaltest/test_inputcapture.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def method_called(method_name, method_args, path):
)

xdp_session.close()
self.mainloop.run()
self.setup_mainloop_with_timeout(timeout_ms=0).run()

assert was_closed is True

Expand All @@ -642,6 +642,6 @@ def session_closed(session):
xdp_session.connect("closed", session_closed)

session.enable()
self.mainloop.run()
self.setup_mainloop_with_timeout(timeout_ms=0).run()

assert session_closed_signal_received is True
4 changes: 2 additions & 2 deletions tests/pyportaltest/test_remotedesktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def method_called(method_name, method_args, path):
)

session.close()
self.mainloop.run()
self.setup_mainloop_with_timeout(timeout_ms=0).run()

assert was_closed is True

Expand All @@ -593,6 +593,6 @@ def session_closed(session):

session.connect("closed", session_closed)

self.mainloop.run()
self.setup_mainloop_with_timeout(timeout_ms=0).run()

assert session_closed_signal_received is True
2 changes: 1 addition & 1 deletion tests/pyportaltest/test_screencast.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,5 +307,5 @@ def method_called(method_name, method_args, path):
)

session.close()
self.mainloop.run()
self.setup_mainloop_with_timeout(timeout_ms=0).run()
assert was_closed is True

0 comments on commit da5cc13

Please sign in to comment.