Set default value for BatchWait as ticker does not accept 0

pull/976/head
Cyrill Troxler 6 years ago committed by Ed Welch
parent 5cd384a2af
commit 6b5180535f
  1. 4
      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 {

Loading…
Cancel
Save