From b4b24a02f3d3cd8e5b739f4f96fdbe19a0b24d4a Mon Sep 17 00:00:00 2001 From: quobix Date: Fri, 19 Apr 2024 06:38:07 -0400 Subject: [PATCH] added assertion to test --- document_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/document_test.go b/document_test.go index 278cc21b..9a5118b2 100644 --- a/document_test.go +++ b/document_test.go @@ -4,7 +4,6 @@ package libopenapi import ( "bytes" - "errors" "fmt" "log/slog" "os" @@ -1367,8 +1366,6 @@ components: panic(err) } _, errs := doc.BuildV3Model() - if len(errs) > 0 { - fmt.Println(errors.Join(errs...)) - } + assert.Len(t, errs, 0) }