diff --git a/binding/binding_test.go b/binding/binding_test.go index f90488cd..87393bfa 100644 --- a/binding/binding_test.go +++ b/binding/binding_test.go @@ -1225,7 +1225,7 @@ func testBodyBinding(t *testing.T, b Binding, name, path, badPath, body, badBody obj = FooStruct{} req = requestWithBody(http.MethodPost, badPath, badBody) - err = JSON.Bind(req, &obj) + err = b.Bind(req, &obj) require.Error(t, err) } @@ -1336,7 +1336,7 @@ func testBodyBindingFail(t *testing.T, b Binding, name, path, badPath, body, bad obj = FooStruct{} req = requestWithBody(http.MethodPost, badPath, badBody) - err = JSON.Bind(req, &obj) + err = b.Bind(req, &obj) require.Error(t, err) }