Skip to content

Commit f766476

Browse files
authored
Merge pull request #525 from isovector/tactics-diagnostics
Wait for diagnostics in tactics tests to try to workaround circleci failing ones
2 parents 9a55a8d + e207023 commit f766476

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/Tactic.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ mkTest name fp line col ts =
122122
testCase name $ do
123123
runSession hlsCommand fullCaps tacticPath $ do
124124
doc <- openDoc fp "haskell"
125+
_ <- waitForDiagnostics
125126
actions <- getCodeActions doc $ pointRange line col
126127
let titles = mapMaybe codeActionTitle actions
127128
for_ ts $ \(f, tc, var) -> do
@@ -136,6 +137,7 @@ goldenTest input line col tc occ =
136137
testCase (input <> " (golden)") $ do
137138
runSession hlsCommand fullCaps tacticPath $ do
138139
doc <- openDoc input "haskell"
140+
_ <- waitForDiagnostics
139141
actions <- getCodeActions doc $ pointRange line col
140142
Just (CACodeAction (CodeAction {_command = Just c}))
141143
<- pure $ find ((== Just (tacticTitle tc occ)) . codeActionTitle) actions

0 commit comments

Comments
 (0)