File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -88,18 +88,17 @@ hlintTests = testGroup "hlint suggestions" [
88
88
let config = def { hlintOn = True }
89
89
sendNotification WorkspaceDidChangeConfiguration (DidChangeConfigurationParams (toJSON config))
90
90
91
- doc <- openDoc " ApplyRefact2.hs" " haskell"
92
- diags <- waitForDiagnosticsSource " hlint "
91
+ _ <- openDoc " ApplyRefact2.hs" " haskell"
92
+ diags <- waitForDiagnostics
93
93
94
- liftIO $ length diags @?= 2
94
+ liftIO $ ( Just " hlint " `elem` map ( ^. L. source) diags) @? " There are hlint diagnostics "
95
95
96
96
let config' = def { hlintOn = False }
97
97
sendNotification WorkspaceDidChangeConfiguration (DidChangeConfigurationParams (toJSON config'))
98
98
99
- _ <- waitForDiagnosticsSource " typecheck"
100
- diags' <- getCurrentDiagnostics doc
99
+ diags' <- waitForDiagnostics
101
100
102
- liftIO $ length diags' @?= 1 -- typecheck diagnostic "Defined but not used "
101
+ liftIO $ ( not $ Just " hlint " `elem` map ( ^. L. source) diags') @? " There are not hlint diagnostics "
103
102
104
103
]
105
104
You can’t perform that action at this time.
0 commit comments