Skip to content

Commit e0f3c4b

Browse files
committed
Sleep 0.5s after running a session
1 parent c5f0956 commit e0f3c4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hls-test-utils/src/Test/Hls.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import System.Directory (getCurrentDirectory,
4242
setCurrentDirectory)
4343
import System.IO.Extra
4444
import System.Process.Extra (createPipe)
45+
import System.Time.Extra
4546
import Test.Hls.Util
4647
import Test.Tasty hiding (Timeout)
4748
import Test.Tasty.ExpectedFailure
@@ -108,6 +109,8 @@ runSessionWithServer' plugin conf sconf caps root s = do
108109
in ideOptions {optShakeOptions = (optShakeOptions ideOptions) {shakeThreads = 2}},
109110
argsHlsPlugins = pluginDescToIdePlugins $ plugin ++ Ghcide.descriptors
110111
}
111-
withAsync server $ \_ ->
112+
x <- withAsync server $ \_ ->
112113
runSessionWithHandles inW outR sconf caps root s
113114
`finally` setCurrentDirectory cwd
115+
sleep 0.5
116+
pure x

0 commit comments

Comments
 (0)