Skip to content

Commit

Permalink
lsp: Make length check of inlay hints fatal (#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 Sep 11, 2024
1 parent da50d28 commit a672964
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 a672964

Please sign in to comment.