File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ hlintTests = testGroup "hlint suggestions" [
71
71
, testCase " falls back to pre 3.8 code actions" $ runSession hlsCommand noLiteralCaps " test/testdata/hlint" $ do
72
72
doc <- openDoc " ApplyRefact2.hs" " haskell"
73
73
74
- _ <- waitForDiagnostics
74
+ _ <- waitForDiagnosticsSource " hlint "
75
75
76
76
(CACommand cmd: _) <- getAllCodeActions doc
77
77
@@ -85,16 +85,16 @@ hlintTests = testGroup "hlint suggestions" [
85
85
sendNotification WorkspaceDidChangeConfiguration (DidChangeConfigurationParams (toJSON config))
86
86
87
87
_ <- openDoc " ApplyRefact2.hs" " haskell"
88
- diags <- waitForDiagnostics
88
+ diags <- waitForDiagnosticsSource " hlint "
89
89
90
- liftIO $ ( Just " hlint " `elem` map ( ^. L. source) diags) @? " There are hlint diagnostics"
90
+ liftIO $ length diags > 0 @? " There are hlint diagnostics"
91
91
92
92
let config' = def { hlintOn = False }
93
93
sendNotification WorkspaceDidChangeConfiguration (DidChangeConfigurationParams (toJSON config'))
94
94
95
95
diags' <- waitForDiagnostics
96
96
97
- liftIO $ (not $ Just " hlint" `elem` map (^. L. source) diags') @? " There are not hlint diagnostics"
97
+ liftIO $ (not $ Just " hlint" `elem` map (^. L. source) diags') @? " There are no hlint diagnostics"
98
98
99
99
]
100
100
You can’t perform that action at this time.
0 commit comments