We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d129c0 commit a85aaa1Copy full SHA for a85aaa1
plugins/hls-refactor-plugin/test/Main.hs
@@ -100,7 +100,8 @@ initializeTests = withResource acquire release tests
100
doTest = do
101
ir <- getInitializeResponse
102
let Just ExecuteCommandOptions {_commands = List commands} = getActual $ innerCaps ir
103
- zipWithM_ (\e o -> T.isSuffixOf e o @? show (e,o)) expected commands
+ -- Check if expected exists in commands. Note that commands can arrive in different order.
104
+ mapM_ (\e -> any (\o -> T.isSuffixOf e o) commands @? show (expected, show commands)) expected
105
106
acquire :: IO (ResponseMessage Initialize)
107
acquire = run initializeResponse
0 commit comments