Skip to content

Commit 9d5eb0d

Browse files
alnrzepatrik
andcommitted
fix: error assertion
Co-authored-by: Patrik <zepatrik@users.noreply.github.com>
1 parent 19b089d commit 9d5eb0d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

httploader/httploader_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,5 @@ func TestHTTPLoader(t *testing.T) {
4848
require.ErrorIs(t, err, errFoo)
4949

5050
_, err = Load(context.WithValue(context.Background(), ContextKey, new(struct{})), ts.URL)
51-
require.Error(t, err, errFoo)
52-
assert.Equal(t, "invalid context value for github.com/ory/jsonschema/v3/httploader.HTTPClient expected *retryablehttp.Client but got: *struct {}", err.Error())
51+
assert.ErrorContains(t, err, "invalid context value for github.com/ory/jsonschema/v3/httploader.HTTPClient expected *retryablehttp.Client but got: *struct {}")
5352
}

0 commit comments

Comments
 (0)