Skip to content

Commit

Permalink
Add RecordPedantic() argument to TestRecordBailsWithoutFields
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Gardner committed Mar 22, 2016
1 parent c93288e commit b29853a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ func TestRecordBailsWithoutFields(t *testing.T) {
checkError(t, err, fmt.Errorf("record fields ought to be non-empty array"))

schema["fields"] = make([]interface{}, 0)
_, err = NewRecord(recordSchemaRaw(schema))
// Empty unions are only checked if RecordPedantic is set
_, err = NewRecord(recordSchemaRaw(schema), RecordPedantic())
checkError(t, err, fmt.Errorf("record fields ought to be non-empty array"))

fields := make([]interface{}, 0)
Expand Down

0 comments on commit b29853a

Please sign in to comment.