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
39
39
(hinRead, hinWrite) <- createPipe
40
40
(houtRead, houtWrite) <- createPipe
41
41
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
43
43
44
44
res <- Test. runSessionWithHandles hinWrite houtRead testConfig caps root session
45
45
46
46
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
49
51
50
52
pure res
51
53
You can’t perform that action at this time.
0 commit comments