File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,15 @@ runSessionWithServer logger defn testConfig caps root session = do
3939 (hinRead, hinWrite) <- createPipe
4040 (houtRead, houtWrite) <- createPipe
4141
42- server <- async $ void $ runServerWithHandles logger (L. hoistLogAction liftIO logger) hinRead houtWrite defn
42+ server <- async $ runServerWithHandles logger (L. hoistLogAction liftIO logger) hinRead houtWrite defn
4343
4444 res <- Test. runSessionWithHandles hinWrite houtRead testConfig caps root session
4545
4646 timeout 3000000 $ do
47- Left (fromException -> Just ExitSuccess ) <- waitCatch server
48- pure ()
47+ return_code <- wait server
48+ case return_code of
49+ 0 -> pure ()
50+ _ -> error $ " Server exited with non-zero code: " ++ show return_code
4951
5052 pure res
5153
You can’t perform that action at this time.
0 commit comments