This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import Utils
17
17
18
18
spec :: Spec
19
19
spec = describe " diagnostics providers" $ do
20
- describe " diagnostics triggers" $ do
20
+ describe " diagnostics triggers" $
21
21
it " runs diagnostics on save" $
22
22
runSession hieCommandExamplePlugin codeActionSupportCaps " test/testdata" $ do
23
23
-- runSessionWithConfig logConfig hieCommandExamplePlugin codeActionSupportCaps "test/testdata" $ do
Original file line number Diff line number Diff line change 1
1
module Main where
2
2
3
- import Test.Hspec
3
+ import Control.Monad.IO.Class
4
+ import Language.Haskell.LSP.Test
4
5
import qualified FunctionalSpec
5
- import TestUtils
6
+ import Test.Hspec
7
+ import TestUtils
6
8
7
9
main :: IO ()
8
10
main = do
9
11
setupStackFiles
12
+ -- run a test session to warm up the cache to prevent timeouts in other tests
13
+ putStrLn " Warming up HIE cache..."
14
+ runSessionWithConfig (defaultConfig { messageTimeout = 120 }) hieCommand fullCaps " test/testdata" $
15
+ liftIO $ putStrLn " HIE cache is warmed up"
10
16
-- withFileLogging "functional.log" $ hspec FunctionalSpec.spec
11
17
withFileLogging logFilePath $ hspec FunctionalSpec. spec
You can’t perform that action at this time.
0 commit comments