Skip to content

Commit

Permalink
lsp: Make length check of inlay hints fatal (StyraInc#1101)
Browse files Browse the repository at this point in the history
Since the rest of the test is making use of the hints, we need to stop
execution if the length check fails.

Signed-off-by: Charlie Egan <[email protected]>
  • Loading branch information
charlieegan3 authored and srenatus committed Oct 1, 2024
1 parent be8933b commit 8bd0c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lsp/inlayhint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestGetInlayHintsAstCall(t *testing.T) {
inlayHints := getInlayHints(module)

if len(inlayHints) != 2 {
t.Errorf("Expected 2 inlay hints, got %d", len(inlayHints))
t.Fatalf("Expected 2 inlay hints, got %d", len(inlayHints))
}

if inlayHints[0].Label != "object:" {
Expand Down

0 comments on commit 8bd0c4e

Please sign in to comment.