From 51a500ceafa6d32b39e8c79bbb885fd1f0d559a4 Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Wed, 13 Nov 2019 14:05:47 +0000 Subject: [PATCH] Turn back on tests --- .github/workflows/haskell.yml | 10 +++++----- test/Test.hs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 249d55a..87a1ca1 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -52,8 +52,8 @@ jobs: run: npm install javascript-typescript-langserver - name: Build run: cabal build - # - name: Test - # run: | - # echo $PATH - # export PATH=$PATH:$(npm bin) - # cabal run lsp-test:test:tests + - name: Test + run: | + echo $PATH + export PATH=$PATH:$(npm bin) + cabal run lsp-test:test:tests diff --git a/test/Test.hs b/test/Test.hs index 40c4aab..c662d46 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -27,7 +27,7 @@ import System.Timeout {-# ANN module ("HLint: ignore Reduce duplication" :: String) #-} {-# ANN module ("HLint: ignore Unnecessary hiding" :: String) #-} -runSession = runSessionWithConfig (defaultConfig { logStdErr = True, logMessages = True }) +runSession = runSessionWithConfig (defaultConfig { logStdErr = True }) main = hspec $ do describe "Session" $ do @@ -46,7 +46,7 @@ main = hspec $ do describe "withTimeout" $ do it "times out" $ - let sesh = runSession "hie" fullCaps "test/data/renamePass" $ do + let sesh = runSession "hie -d --bios-verbose" fullCaps "test/data/renamePass" $ do openDoc "Desktop/simple.hs" "haskell" -- won't receive a request - will timeout -- incoming logging requests shouldn't increase the -- 2.30.2