diff --git a/pkg/promtail/client/multi_test.go b/pkg/promtail/client/multi_test.go index d31821c2c79be..383e2921817df 100644 --- a/pkg/promtail/client/multi_test.go +++ b/pkg/promtail/client/multi_test.go @@ -22,8 +22,8 @@ func TestNewMulti(t *testing.T) { } host1, _ := url.Parse("http://localhost:3100") host2, _ := url.Parse("https://grafana.com") - expectedCfg1 := Config{BatchSize: 20, URL: flagext.URLValue{URL: host1}} - expectedCfg2 := Config{BatchSize: 10, URL: flagext.URLValue{URL: host2}} + expectedCfg1 := Config{BatchSize: 20, BatchWait: 1 * time.Second, URL: flagext.URLValue{URL: host1}} + expectedCfg2 := Config{BatchSize: 10, BatchWait: 1 * time.Second, URL: flagext.URLValue{URL: host2}} clients, err := NewMulti(util.Logger, expectedCfg1, expectedCfg2) if err != nil {