From 7ca8d96479f8ee8711e774b9a74ab5f27e150d1f Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Sat, 8 Jun 2019 17:17:53 +0100 Subject: [PATCH] Try to fix further timeout messages --- test/Test.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 () -- 2.30.2