Skip to content

Commit

Permalink
[#246] Add timeout to wait_for_empty_queue in tests
Browse files Browse the repository at this point in the history
wait_for_empty_queue now allows the caller to specify a timeout
in seconds as well as a function to run when a timeout occurs.
If None is given for the function to run when a timeout occurs,
the function raises a TimeoutError Exception. Existing uses of
this function pass self.fail() to run on timeout with a brief
message explaining the failure.
  • Loading branch information
alanking committed Dec 10, 2024
1 parent 897a6ab commit f981000
Showing 1 changed file with 77 additions and 58 deletions.
Loading

0 comments on commit f981000

Please sign in to comment.