diff --git a/internal/lsp/source/source_test.go b/internal/lsp/source/source_test.go index b0e50d5a57..95922c8f9d 100644 --- a/internal/lsp/source/source_test.go +++ b/internal/lsp/source/source_test.go @@ -592,7 +592,7 @@ func (r *runner) Highlight(t *testing.T, src span.Span, locations []span.Span) { t.Errorf("highlight failed for %s: %v", src.URI(), err) } if len(highlights) != len(locations) { - t.Errorf("got %d highlights for highlight at %v:%v:%v, expected %d", len(highlights), src.URI().Filename(), src.Start().Line(), src.Start().Column(), len(locations)) + t.Fatalf("got %d highlights for highlight at %v:%v:%v, expected %d", len(highlights), src.URI().Filename(), src.Start().Line(), src.Start().Column(), len(locations)) } // Check to make sure highlights have a valid range. var results []span.Span