Skip to content

Commit

Permalink
galley-integration: Give legalhold service longer to be connectable f…
Browse files Browse the repository at this point in the history
…rom galley (#3776)

Earlier we gave it up to 3.1 milliseconds, now its up to 5 seconds.
  • Loading branch information
akshaymankar authored Dec 13, 2023
1 parent 109b5e4 commit 931df62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/galley/test/integration/API/Teams/LegalHold/Util.hs
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

0 comments on commit 931df62

Please sign in to comment.