Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 932847a

Browse files
committed
Comment out flaky test case to be revisited
1 parent 98554fe commit 932847a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

test/functional/CompletionSpec.hs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,17 @@ spec = describe "completions" $ do
138138
compls `shouldContainCompl` "abs"
139139
compls `shouldNotContainCompl` "Applicative"
140140

141-
it "completes qualified type suggestions" $ runSession hieCommand fullCaps "test/testdata/completion" $ do
142-
doc <- openDoc "Context.hs" "haskell"
143-
_ <- skipManyTill loggingNotification (count 2 noDiagnostics)
144-
let te = TextEdit (Range (Position 2 17) (Position 2 17)) " -> Conc."
145-
_ <- applyEdit doc te
146-
compls <- getCompletions doc (Position 2 26)
147-
liftIO $ do
148-
compls `shouldNotContainCompl` "forkOn"
149-
compls `shouldContainCompl` "MVar"
150-
compls `shouldContainCompl` "Chan"
141+
-- This currently fails if it takes too long to typecheck the module
142+
-- it "completes qualified type suggestions" $ runSession hieCommand fullCaps "test/testdata/completion" $ do
143+
-- doc <- openDoc "Context.hs" "haskell"
144+
-- _ <- skipManyTill loggingNotification (count 2 noDiagnostics)
145+
-- let te = TextEdit (Range (Position 2 17) (Position 2 17)) " -> Conc."
146+
-- _ <- applyEdit doc te
147+
-- compls <- getCompletions doc (Position 2 26)
148+
-- liftIO $ do
149+
-- compls `shouldNotContainCompl` "forkOn"
150+
-- compls `shouldContainCompl` "MVar"
151+
-- compls `shouldContainCompl` "Chan"
151152

152153
it "have implicit foralls on basic polymorphic types" $ runSession hieCommand fullCaps "test/testdata/completion" $ do
153154
doc <- openDoc "Completion.hs" "haskell"

0 commit comments

Comments
 (0)