File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
services/galley/test/integration/API/Teams/LegalHold Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -194,13 +194,15 @@ withTestService ::
194194 TestM a
195195withTestService mkApp go = withFreePortAnyAddr $ \ (sPort, sock) -> do
196196 config <- view (tsIConf . to provider)
197+ serverStarted <- newEmptyMVar
197198 let tlss = Warp. tlsSettings (cert config) (privateKey config)
198- let defs = Warp. defaultSettings {Warp. settingsPort = sPort}
199+ let defs = Warp. defaultSettings {Warp. settingsPort = sPort, Warp. settingsBeforeMainLoop = putMVar serverStarted () }
199200 buf <- liftIO newChan
200201 srv <-
201202 liftIO . Async. async $
202203 Warp. runTLSSocket tlss defs sock $
203204 mkApp buf
205+ takeMVar serverStarted
204206 go sPort buf `finally` liftIO (Async. cancel srv)
205207
206208publicKeyNotMatchingService :: PEM
You can’t perform that action at this time.
0 commit comments