Skip to content

Commit a981741

Browse files
JemDaydaveshanley
authored andcommitted
- Fixed corrupted tests (more haste, less speed)
1 parent 5b32e9d commit a981741

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

helpers/schema_compiler_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func Test_ValidJSONSchemaWithInvalidContent(t *testing.T) {
7373

7474
jsch, err := NewCompiledSchema("test", []byte(badSchema), nil)
7575

76-
assert.NoError(t, err, "Expected an error to be thrown")
76+
assert.Error(t, err, "Expected an error to be thrown")
7777
assert.Nil(t, jsch, "invalid schema compiled!")
7878
}
7979

@@ -87,7 +87,7 @@ func Test_MalformedSONSchema(t *testing.T) {
8787

8888
jsch, err := NewCompiledSchema("test", []byte(badSchema), nil)
8989

90-
assert.NoError(t, err, "Expected an error to be thrown")
90+
assert.Error(t, err, "Expected an error to be thrown")
9191
assert.Nil(t, jsch, "invalid schema compiled!")
9292
}
9393

@@ -108,6 +108,6 @@ func Test_ValidJSONSchemaWithIncompleteContent(t *testing.T) {
108108

109109
jsch, err := NewCompiledSchema("test", []byte(incompleteSchema), nil)
110110

111-
assert.NoError(t, err, "Expected an error to be thrown")
111+
assert.Error(t, err, "Expected an error to be thrown")
112112
assert.Nil(t, jsch, "invalid schema compiled!")
113113
}

0 commit comments

Comments
 (0)