Skip to content

Commit

Permalink
Improved backoff test
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhxyz committed Sep 23, 2023
1 parent 14b93a9 commit deb4e88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Maestro/Client/Env.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ servantClientEnv url = do

-- | Base delay & maximum waiting in microseconds corresponding to `maeBaseDelay`, `maeMaxDelay` respectively. See description of `maeBaseDelay` & `maeMaxDelay` for more information.
defaultBackoff :: Maybe (Int, Int)
defaultBackoff = Just (50000, 10000000)
defaultBackoff = Just (1_000_000, 10_000_000)
2 changes: 1 addition & 1 deletion test/Maestro/Test/Backoff.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ forkChild :: MVar [MVar Ret] -> IO Ret -> IO ThreadId
forkChild children action = do
mvar :: MVar Ret <- newEmptyMVar
childs <- takeMVar children
putMVar children (mvar:childs)
putMVar children (mvar : childs)
forkFinally action $ \case
Left _ -> putMVar mvar $ Left $ MaestroError "client finished abruptly"
Right ret' -> putMVar mvar ret'
Expand Down

0 comments on commit deb4e88

Please sign in to comment.