Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Control.Concurrent.Timeout hiding (threadDelay)
import Control.Exception (asyncExceptionFromException)
import Control.Lens hiding ((#))
import Control.Monad.Catch
import Control.Retry (RetryPolicy, RetryStatus, exponentialBackoff, limitRetries, retrying)
import Control.Retry
import Data.Aeson qualified as Aeson
import Data.Aeson.Types (FromJSON, withObject, (.:))
import Data.ByteString qualified as BS
Expand Down Expand Up @@ -330,7 +330,7 @@ postSettings uid tid new =
. json new
where
policy :: RetryPolicy
policy = exponentialBackoff 50 <> limitRetries 5
policy = limitRetriesByCumulativeDelay 5_000_000 $ exponentialBackoff 50
only412 :: RetryStatus -> ResponseLBS -> TestM Bool
only412 _ resp = pure $ statusCode resp == 412

Expand Down