Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit ee421cf

Browse files
authored
Merge pull request #1317 from jneira/fix-win-tests
Clear out pattern matching and error message of executeCodeActionByName
2 parents fa0b452 + db61869 commit ee421cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/functional/FunctionalCodeActionsSpec.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -751,11 +751,11 @@ hsImportSpec formatterName [e1, e2, e3, e4] =
751751
let actions = filter (\actn -> actn ^. L.title `elem` names) allActions
752752
case actions of
753753
(action:_) -> executeCodeAction action
754-
xs ->
754+
[] ->
755755
error
756-
$ "Found an unexpected amount of action. Expected 1, but got: "
757-
++ show (length xs)
758-
++ ".\n Titles: " ++ show (map (^. L.title) allActions)
756+
$ "No action found to be executed!"
757+
++ "\n Actual actions titles: " ++ show (map (^. L.title) allActions)
758+
++ "\n Expected actions titles: " ++ show names
759759

760760
-- Silence warnings
761761
hsImportSpec formatter args =

0 commit comments

Comments
 (0)