Skip to content

Commit

Permalink
wait longer, needed with slow CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Apr 3, 2024
1 parent 98d34be commit 1d9e881
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unittests/unit/client/splash_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def stop_splash(self):
return
try:
self.do_feed_splash(s, [
"100:100",
"100:100",
], 5)
if pollwait(s, 5) is not None:
return
Expand Down Expand Up @@ -103,20 +103,20 @@ def test_invalid(self):
self._feed_splash([
"notanumber:ignoreit",
"50:50",
])
])
r = pollwait(self.splash, 5)
assert r is None, "splash screen should not have terminated"
#try killing it with a signal:
self.splash.send_signal(signal.SIGTERM)
r = pollwait(self.splash, 5)
r = pollwait(self.splash, 10)
assert r is not None, "expected splash to exit"

def test_full(self):
self._feed_splash([
"10:10",
"100:100",
])
r = pollwait(self.splash, 5)
])
r = pollwait(self.splash, 10)
assert r is not None, "splash screen should have terminated"
assert r==0, "exit code should be zero, but got %s" % r
self.stop_splash()
Expand All @@ -126,7 +126,7 @@ def test_partial(self):
"10:10",
"20:20",
"90:90",
])
])
assert self.splash.poll() is None, "splash screen should still be running"
self.stop_splash()

Expand Down

0 comments on commit 1d9e881

Please sign in to comment.