projects
/
lsp-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4d68c32
)
Try fixing tests and debug
author
Luke Lau
<luke_lau@icloud.com>
Sat, 8 Jun 2019 11:49:24 +0000
(12:49 +0100)
committer
Luke Lau
<luke_lau@icloud.com>
Sat, 8 Jun 2019 19:16:56 +0000
(20:16 +0100)
.travis.yml
patch
|
blob
|
history
test/Test.hs
patch
|
blob
|
history
diff --git
a/.travis.yml
b/.travis.yml
index 9d8e610da41329923572c8212fd263bd58536cf5..dc3d0b1c838acaca9b029954985d6a9ccf542bae 100644
(file)
--- a/
.travis.yml
+++ b/
.travis.yml
@@
-21,13
+21,14
@@
addons:
before_install:
- export PATH=$HOME/.cabal/bin:$PATH
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
- 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
- cabal v2-install hie -j2 --overwrite-policy=always
- cabal v2-install hoogle -j2 --overwrite-policy=always
- hoogle generate
diff --git
a/test/Test.hs
b/test/Test.hs
index 8602118bc6e795c550ff5348c9edc7d5b3df71c9..f4c48d2243f712bb5378ff97603be09d00f151d4 100644
(file)
--- a/
test/Test.hs
+++ b/
test/Test.hs
@@
-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"
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
withTimeout 3 $ getDocumentSymbols doc
- liftIO $ threadDelay 5000000
-- shouldn't throw an exception
getDocumentSymbols doc
return ()
-- shouldn't throw an exception
getDocumentSymbols doc
return ()