Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#246] Add timeout to wait_for_empty_queue in tests
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