chore: reduce number of workers during testing
This commit is contained in:
parent
fb0a237896
commit
c553414b38
@ -67,7 +67,7 @@ update = do
|
|||||||
restartAppInNewThread tidStore = modifyStoredIORef tidStore $ \tid -> do
|
restartAppInNewThread tidStore = modifyStoredIORef tidStore $ \tid -> do
|
||||||
killThread tid
|
killThread tid
|
||||||
withStore doneStore takeMVar
|
withStore doneStore takeMVar
|
||||||
readStore doneStore >>= start
|
withStore doneStore start
|
||||||
|
|
||||||
|
|
||||||
-- | Start the server in a separate thread.
|
-- | Start the server in a separate thread.
|
||||||
@ -77,7 +77,7 @@ update = do
|
|||||||
(port, site, app) <- getApplicationRepl
|
(port, site, app) <- getApplicationRepl
|
||||||
resourceForkIO $ do
|
resourceForkIO $ do
|
||||||
finally (liftIO $ runSettings (setPort port defaultSettings) app)
|
finally (liftIO $ runSettings (setPort port defaultSettings) app)
|
||||||
(liftIO $ shutdownApp site >> putMVar done ())
|
(liftIO $ shutdownApp site `finally` putMVar done ())
|
||||||
|
|
||||||
-- | kill the server
|
-- | kill the server
|
||||||
shutdown :: IO ()
|
shutdown :: IO ()
|
||||||
|
|||||||
@ -8,3 +8,5 @@ log-settings:
|
|||||||
destination: "test.log"
|
destination: "test.log"
|
||||||
|
|
||||||
auth-dummy-login: true
|
auth-dummy-login: true
|
||||||
|
|
||||||
|
job-workers: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user