Skip to content

Commit 16dd74e

Browse files
committed
Skip logging notifications in tests
1 parent e68c553 commit 16dd74e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/FunctionalCodeAction.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ renameTests = testGroup "rename suggestions" [
4343
cars <- getAllCodeActions doc
4444
replaceButStrLn <- liftIO $ inspectCommand cars ["Replace with", "putStrLn"]
4545
executeCommand replaceButStrLn
46-
_ <- anyRequest
46+
_ <- skipManyTill loggingNotification anyRequest
4747

4848
x:_ <- T.lines <$> documentContents doc
4949
liftIO $ x @?= "main = putStrLn \"hello\""
@@ -65,7 +65,7 @@ renameTests = testGroup "rename suggestions" [
6565
_ -> error $ "Unexpected arguments: " ++ show mbArgs
6666

6767
executeCommand cmd
68-
_ <- anyRequest
68+
_ <- skipManyTill loggingNotification anyRequest
6969

7070
x1:x2:_ <- T.lines <$> documentContents doc
7171
liftIO $
@@ -207,7 +207,7 @@ redundantImportTests = testGroup "redundant import code actions" [
207207
cas <- getAllCodeActions doc
208208
cmd <- liftIO $ inspectCommand cas ["redundant import"]
209209
executeCommand cmd
210-
_ <- anyRequest
210+
_ <- skipManyTill loggingNotification anyRequest
211211
contents <- documentContents doc
212212
liftIO $ T.lines contents @?=
213213
[ "{-# OPTIONS_GHC -Wunused-imports #-}"

0 commit comments

Comments
 (0)