Skip to content
Open
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
5 changes: 3 additions & 2 deletions integration/test/Testlib/ModService.hs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ checkFederationIngress origin target = do
Unversioned
("/rpc/" <> target <> "/brig/api-version")
<&> (addHeader "Wire-Origin-Domain" origin)
. (addHeader "Connection" "close")
. (addJSONObject [])
checkStatus <- appToIO $ do
submit "POST" req `bindResponse` \res -> do
Expand Down Expand Up @@ -515,13 +516,13 @@ waitUntilServiceIsUp mDebug domain srv = do
checkServiceIsUp :: String -> Service -> App Bool
checkServiceIsUp _ Nginz = pure True
checkServiceIsUp domain srv = do
req <- baseRequest domain srv Unversioned "/i/status"
req <- baseRequest domain srv Unversioned "/i/status" <&> addHeader "Connection" "close"
mExtReq <- case srv of
FederatorInternal -> do
sMap <- getServiceMap domain
let extHostPort = sMap.federatorExternal
extUrl = "http://" <> extHostPort.host <> ":" <> show extHostPort.port <> "/i/status"
Just <$> externalRequest extUrl
Just . addHeader "Connection" "close" <$> externalRequest extUrl
_ -> pure Nothing
checkStatus <- appToIO $ do
res <- submit "GET" req
Expand Down