Skip to content

Commit abcbdaa

Browse files
committed
Fix failing hls functional test
1 parent add70e4 commit abcbdaa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/functional/PluginSpec.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ spec = do
9090
symbolsRsp <- skipManyTill anyNotification message :: Session DocumentSymbolsResponse
9191
liftIO $ symbolsRsp ^. L.id `shouldBe` responseId id2
9292

93-
liftIO $ symbolsRsp ^. L.result `shouldBe`
94-
Just (DSDocumentSymbols
95-
(List [DocumentSymbol
93+
94+
let Just (DSDocumentSymbols (List ds)) = symbolsRsp ^. L.result
95+
liftIO $ length ds `shouldBe` 3
96+
liftIO $ (take 2 ds) `shouldBe`
97+
[DocumentSymbol
9698
"Example_symbol_name"
9799
Nothing
98100
SkVariable
@@ -110,6 +112,6 @@ spec = do
110112
, _end = Position {_line = 4, _character = 7}})
111113
(Range {_start = Position {_line = 4, _character = 1}
112114
, _end = Position {_line = 4, _character = 7}})
113-
Nothing]))
115+
Nothing]
114116

115117
return ()

0 commit comments

Comments
 (0)