Skip to content

Commit 029a4f8

Browse files
committed
Fix completions tests after haskell/lsp#376
1 parent 955d966 commit 029a4f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/functional/Completion.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ tests = testGroup "completions" [
4646
resolved ^. insertTextFormat @?= Just Snippet
4747
resolved ^. insertText @?= Just "putStrLn ${1:String}"
4848

49-
, testCase "completes imports" $ runSession hlsCommand fullCaps "test/testdata/completion" $ do
49+
, testCase "completes imports" $ runSession (hlsCommand <> " --test") fullCaps "test/testdata/completion" $ do
5050
doc <- openDoc "Completion.hs" "haskell"
5151

52-
_ <- waitForDiagnostics
52+
waitForKickDone
5353

5454
let te = TextEdit (Range (Position 1 17) (Position 1 26)) "Data.M"
5555
_ <- applyEdit doc te
@@ -61,10 +61,10 @@ tests = testGroup "completions" [
6161
item ^. detail @?= Just "Data.Maybe"
6262
item ^. kind @?= Just CiModule
6363

64-
, testCase "completes qualified imports" $ runSession hlsCommand fullCaps "test/testdata/completion" $ do
64+
, testCase "completes qualified imports" $ runSession (hlsCommand <> " --test") fullCaps "test/testdata/completion" $ do
6565
doc <- openDoc "Completion.hs" "haskell"
6666

67-
_ <- waitForDiagnostics
67+
_ <- waitForKickDone
6868

6969
let te = TextEdit (Range (Position 2 17) (Position 2 25)) "Data.L"
7070
_ <- applyEdit doc te

0 commit comments

Comments
 (0)