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 committed Jan 6, 2025
1 parent 89fbf5e commit 2787d86
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 2787d86

Please sign in to comment.