1 parent 3ea528e commit 1442d65Copy full SHA for 1442d65
1 file changed
defaults_test.go
@@ -496,7 +496,7 @@ func TestInit(t *testing.T) {
496
if sample.StructPtr == nil || sample.StructPtr.WithDefault != "foo" {
497
t.Errorf("it should set default on inner field in struct pointer")
498
}
499
- if sample.Struct.Embedded.Int != 1 {
+ if sample.Struct.Int != 1 {
500
t.Errorf("it should set default on an Embedded struct")
501
502
})
0 commit comments