Skip to content

Commit 64238f4

Browse files
Fix test output
1 parent 0cf1563 commit 64238f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (s *TestSuite) SetupSuite() {
7676
}
7777
}
7878

79-
func (s *TestSuite) BeforeTest(suite, name string) {
79+
func (s *TestSuite) BeforeTest(_, name string) {
8080
var filename string
8181

8282
switch name {
@@ -112,7 +112,7 @@ func (s *TestSuite) BeforeTest(suite, name string) {
112112
"test/"+filename,
113113
).CombinedOutput()
114114
if err != nil {
115-
s.FailNow(string(out))
115+
s.FailNow(string(out) + "\n" + err.Error())
116116
}
117117

118118
s.rawDoc, err = os.ReadFile("test/openapi.yaml")

0 commit comments

Comments
 (0)