Update field_internal_test.go

This commit is contained in:
Kuba Podgórski 2020-04-09 15:04:11 +02:00 committed by GitHub
parent b43065625a
commit 4272693641
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -461,7 +461,9 @@ func TestField_ApplyOptions(t *testing.T) {
fld := &Field{}
fld.options = applyDefaultOptions(FieldOptions{})
fld.applyOptions(tt.opts)
if err := fld.applyOptions(tt.opts); err 1= nil {
t.Fatal(err)
}
if fld.options.CacheType != tt.expOpts.CacheType {
t.Fatalf("test %d, unexpected FieldOptions.CacheType value. expected: %s, but got: %s", i, tt.expOpts.CacheType, fld.options.CacheType)