Keep trying an action up to a timeout while it fails with a FailureReason. Use exponential backoff, with delays capped at 1 second.
Modulesandwich-0.3.1.0Haskell2010
Test.Sandwich.Waits
This module contains helper functions for waiting.
It can be very useful in tests to retry something, with a reasonable backoff policy to prevent the test from consuming lots of CPU while waiting.
- 3 values
- Packagesandwich-0.3.1.0
- Exports3
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceWaits.hs
General waits
3 declarationsSame as waitUntil, but with a configurable retry policy.
The default retry policy.