We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd40b10 + 6e7da81 commit ea53765Copy full SHA for ea53765
validate/validate_test.go
@@ -72,8 +72,10 @@ func TestJSONSchema(t *testing.T) {
72
v := &Validator{spec: tt.config}
73
errs := v.CheckJSONSchema()
74
if tt.error == "" {
75
- assert.Equal(t, nil, errs)
76
- return
+ if errs == nil {
+ return
77
+ }
78
+ t.Fatalf("expected no error, but got: %s", errs.Error())
79
}
80
if errs == nil {
81
t.Fatal("failed to raise the expected error")
0 commit comments