Skip to content

Commit fd40b10

Browse files
author
Zhou Hao
authored
Merge pull request #474 from wking/json-schema-failed-to-raise-error-panic
validate/validate_test: Handle JSON Schema test not raising an error
2 parents 4882fc1 + 4a705c6 commit fd40b10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

validate/validate_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ func TestJSONSchema(t *testing.T) {
7575
assert.Equal(t, nil, errs)
7676
return
7777
}
78+
if errs == nil {
79+
t.Fatal("failed to raise the expected error")
80+
}
7881
merr, ok := errs.(*multierror.Error)
7982
if !ok {
8083
t.Fatalf("non-multierror returned by CheckJSONSchema: %s", errs.Error())

0 commit comments

Comments
 (0)