From 8bd0c4e51c8cd0c185111ba006a32f427f798776 Mon Sep 17 00:00:00 2001 From: Charlie Egan Date: Wed, 11 Sep 2024 14:41:55 +0100 Subject: [PATCH] lsp: Make length check of inlay hints fatal (#1101) 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 --- internal/lsp/inlayhint_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lsp/inlayhint_test.go b/internal/lsp/inlayhint_test.go index 1229bd73..5a89716b 100644 --- a/internal/lsp/inlayhint_test.go +++ b/internal/lsp/inlayhint_test.go @@ -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:" {