Try fixing tests and debug
authorLuke Lau <luke_lau@icloud.com>
Sat, 8 Jun 2019 11:49:24 +0000 (12:49 +0100)
committerLuke Lau <luke_lau@icloud.com>
Sat, 8 Jun 2019 19:16:56 +0000 (20:16 +0100)
.travis.yml
test/Test.hs

index 9d8e610da41329923572c8212fd263bd58536cf5..dc3d0b1c838acaca9b029954985d6a9ccf542bae 100644 (file)
@@ -21,13 +21,14 @@ addons:
 
 before_install:
 - export PATH=$HOME/.cabal/bin:$PATH
-- mkdir -p haskell-ide-engine
+- mkdir -p $HOME/haskell-ide-engine
 - cd $HOME/haskell-ide-engine
 - git init
 - git remote add origin https://github.com/haskell/haskell-ide-engine.git
 - git pull origin master
 - git checkout abdb097f39e135deaf321a604c95f16cbda32678
 - git submodule update --init
+- ls -a
 - cabal v2-install hie -j2 --overwrite-policy=always
 - cabal v2-install hoogle -j2 --overwrite-policy=always
 - hoogle generate
index 8602118bc6e795c550ff5348c9edc7d5b3df71c9..f4c48d2243f712bb5378ff97603be09d00f151d4 100644 (file)
@@ -64,8 +64,8 @@ main = hspec $ do
 
       it "further timeout messages are ignored" $ runSessionWithConfig config "hie -d --vomit" fullCaps "test/data/renamePass" $ do
         doc <- openDoc "Desktop/simple.hs" "haskell"
+        waitForDiagnostics
         withTimeout 3 $ getDocumentSymbols doc
-        liftIO $ threadDelay 5000000
         -- shouldn't throw an exception
         getDocumentSymbols doc
         return ()