From: Luke Lau Date: Sat, 8 Jun 2019 16:17:53 +0000 (+0100) Subject: Try to fix further timeout messages X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=commitdiff_plain;h=7ca8d96479f8ee8711e774b9a74ab5f27e150d1f Try to fix further timeout messages --- diff --git a/test/Test.hs b/test/Test.hs index 07b95e3..15f457f 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -62,8 +62,12 @@ main = hspec $ do it "further timeout messages are ignored" $ runSessionWithConfig (defaultConfig { logStdErr = True }) "hie -d --vomit" fullCaps "test/data/renamePass" $ do doc <- openDoc "Desktop/simple.hs" "haskell" - waitForDiagnostics + -- warm up the cache + getDocumentSymbols doc + -- shouldn't timeout withTimeout 3 $ getDocumentSymbols doc + -- longer than the original timeout + liftIO $ threadDelay (5 * 10^6) -- shouldn't throw an exception getDocumentSymbols doc return ()