mirror of
https://github.com/cachix/stamina.hs.git
synced 2024-10-05 14:38:04 +03:00
fix intermittent test
This commit is contained in:
parent
76df80992e
commit
2574d8fce4
@ -40,7 +40,8 @@ main = hspec $ do
|
||||
throwM $ userError "error"
|
||||
(result :: Either IOError String) `shouldBe` Left (userError "error")
|
||||
status <- readIORef lastStatus
|
||||
Stamina.attempts status `shouldBe` 1
|
||||
Stamina.attempts status `shouldSatisfy` (< 3)
|
||||
Stamina.attempts status `shouldSatisfy` (> 0)
|
||||
Stamina.totalDelay status `shouldSatisfy` (< secondsToNominalDiffTime 3)
|
||||
it "should respect resetInitial the retry status" $ do
|
||||
lastStatus <- newIORef $ Stamina.initialRetryStatus Stamina.defaults
|
||||
|
Loading…
Reference in New Issue
Block a user