File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ renameTests = testGroup "rename suggestions" [
43
43
cars <- getAllCodeActions doc
44
44
replaceButStrLn <- liftIO $ inspectCommand cars [" Replace with" , " putStrLn" ]
45
45
executeCommand replaceButStrLn
46
- _ <- anyRequest
46
+ _ <- skipManyTill loggingNotification anyRequest
47
47
48
48
x: _ <- T. lines <$> documentContents doc
49
49
liftIO $ x @?= " main = putStrLn \" hello\" "
@@ -65,7 +65,7 @@ renameTests = testGroup "rename suggestions" [
65
65
_ -> error $ " Unexpected arguments: " ++ show mbArgs
66
66
67
67
executeCommand cmd
68
- _ <- anyRequest
68
+ _ <- skipManyTill loggingNotification anyRequest
69
69
70
70
x1: x2: _ <- T. lines <$> documentContents doc
71
71
liftIO $
@@ -207,7 +207,7 @@ redundantImportTests = testGroup "redundant import code actions" [
207
207
cas <- getAllCodeActions doc
208
208
cmd <- liftIO $ inspectCommand cas [" redundant import" ]
209
209
executeCommand cmd
210
- _ <- anyRequest
210
+ _ <- skipManyTill loggingNotification anyRequest
211
211
contents <- documentContents doc
212
212
liftIO $ T. lines contents @?=
213
213
[ " {-# OPTIONS_GHC -Wunused-imports #-}"
You can’t perform that action at this time.
0 commit comments