Skip to content

Commit 7011292

Browse files
committed
close streams after testing
1 parent 7ee3fb7 commit 7011292

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ghcide/test/exe/Main.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5401,14 +5401,15 @@ testIde rootDir arguments session = do
54015401
sleep 1
54025402
runIt
54035403

5404-
-- hClose hInWrite
54055404
timeout 3 (wait server) >>= \case
54065405
Just () -> pure ()
54075406
Nothing -> do
54085407
putStrLn "Server does not exit in 3s, canceling the async task..."
54095408
(t, _) <- duration $ cancel server
54105409
putStrLn $ "Finishing canceling (took " <> showDuration t <> "s)"
54115410

5411+
hClose hInWrite
5412+
hClose hOutRead
54125413
return res
54135414

54145415
positionMappingTests :: TestTree

0 commit comments

Comments
 (0)