@@ -124,7 +124,7 @@ codeLensTests = testGroup
124
124
, testCase " Do not construct error action!, Ticket3942one" $ do
125
125
runSessionWithServer def classPlugin testDataDir $ do
126
126
doc <- openDoc " Ticket3942one.hs" " haskell"
127
- _ <- waitForDiagnosticsFrom doc ( T. unpack sourceTypecheck)
127
+ _ <- waitForDiagnosticsFrom doc
128
128
lens <- getAllCodeActions doc
129
129
-- should switch to `liftIO $ length lens @?= 2, when Ticket3942 is entirely fixed`
130
130
-- current fix is just to make sure the code does not throw an exception that would mess up
@@ -165,7 +165,7 @@ goldenCodeLens title path idx =
165
165
goldenWithClass :: TestName -> FilePath -> FilePath -> ([CodeAction ] -> Session () ) -> TestTree
166
166
goldenWithClass title path desc act =
167
167
goldenWithHaskellDoc def classPlugin title testDataDir path (desc <.> " expected" ) " hs" $ \ doc -> do
168
- _ <- waitForDiagnosticsFrom doc ( T. unpack sourceTypecheck)
168
+ _ <- waitForDiagnosticsFrom doc
169
169
actions <- concatMap (^.. _CACodeAction) <$> getAllCodeActions doc
170
170
act actions
171
171
void $ skipManyTill anyMessage (getDocumentEdit doc)
@@ -175,7 +175,7 @@ expectCodeActionsAvailable title path actionTitles =
175
175
testCase title $ do
176
176
runSessionWithServer def classPlugin testDataDir $ do
177
177
doc <- openDoc (path <.> " hs" ) " haskell"
178
- _ <- waitForDiagnosticsFrom doc ( T. unpack sourceTypecheck)
178
+ _ <- waitForDiagnosticsFrom doc
179
179
caResults <- getAllCodeActions doc
180
180
liftIO $ map (^? _CACodeAction . L. title) caResults
181
181
@?= expectedActions
0 commit comments