Skip to content

Commit a94fa57

Browse files
author
Chance Kirsch
committed
Change format for test for error contains
1 parent 88757e0 commit a94fa57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openapi3/openapi3_version_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ func TestWebhooksField(t *testing.T) {
185185

186186
err := doc.Validate(ctx)
187187
require.Error(t, err)
188-
require.Contains(t, err.Error(), "webhook")
189-
require.Contains(t, err.Error(), "invalidWebhook")
188+
require.ErrorContains(t, err, "webhook")
189+
require.ErrorContains(t, err, "invalidWebhook")
190190
})
191191
}
192192

0 commit comments

Comments
 (0)