dispatchrun / dispatch-py

Python package to develop applications with Dispatch.
https://pypi.org/project/dispatch-py/
Apache License 2.0
56 stars 3 forks source link

tests: make retry example test more accurate #76

Closed pelletier closed 8 months ago

pelletier commented 8 months ago

Instead of just checking that the function returns, check that it returns an error 5 times and eventually succeeds on the sixth try.

To make this work, the TestServer can now re-enqueue work for the next execute() iteration, and the order of responses returned by the app is preserved.