You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require.EqualError(t, xconfmap.Validate(cfg), "batch: `sizers` cannot be empty; leave it unset to use default batch settings, or configure at least one sizer limit")
50
50
51
-
cfg=newTestConfigWithSizers()
51
+
cfg=newTestConfig()
52
52
cfg.Sizer=request.SizerTypeBytes
53
53
require.NoError(t, xconfmap.Validate(cfg))
54
54
55
55
// Programmatic legacy usage -> error
56
-
cfg=newTestConfigWithSizers()
56
+
cfg=newTestConfig()
57
57
cfg.Batch.Get().Sizer=request.SizerTypeItems
58
58
require.EqualError(t, xconfmap.Validate(cfg), "batch: `batch` does not support `min_size`, `max_size`, `sizer` fields anymore, please use `sizers` instead")
0 commit comments