Skip to content

Commit

Permalink
Check multiple different timeout error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Aug 23, 2023
1 parent f022c3d commit 396688f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dask_cuda/tests/test_dask_cuda_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,12 @@ def test_worker_timeout():
)

assert "closing nanny at" in ret.stderr.lower()
assert "reason: failure-to-start-" in ret.stderr.lower()
assert "timeouterror" in ret.stderr.lower()

# Depending on the environment, the error raised may be different
try:
assert "reason: failure-to-start-" in ret.stderr.lower()
assert "timeouterror" in ret.stderr.lower()
except AssertionError:
assert "reason: nanny-close" in ret.stderr.lower()

assert ret.returncode == 0

0 comments on commit 396688f

Please sign in to comment.