We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f0956 commit e0f3c4bCopy full SHA for e0f3c4b
hls-test-utils/src/Test/Hls.hs
@@ -42,6 +42,7 @@ import System.Directory (getCurrentDirectory,
42
setCurrentDirectory)
43
import System.IO.Extra
44
import System.Process.Extra (createPipe)
45
+import System.Time.Extra
46
import Test.Hls.Util
47
import Test.Tasty hiding (Timeout)
48
import Test.Tasty.ExpectedFailure
@@ -108,6 +109,8 @@ runSessionWithServer' plugin conf sconf caps root s = do
108
109
in ideOptions {optShakeOptions = (optShakeOptions ideOptions) {shakeThreads = 2}},
110
argsHlsPlugins = pluginDescToIdePlugins $ plugin ++ Ghcide.descriptors
111
}
- withAsync server $ \_ ->
112
+ x <- withAsync server $ \_ ->
113
runSessionWithHandles inW outR sconf caps root s
114
`finally` setCurrentDirectory cwd
115
+ sleep 0.5
116
+ pure x
0 commit comments