Skip to content
Snippets Groups Projects
Commit 6b518053 authored by Cyrill Troxler's avatar Cyrill Troxler Committed by Ed Welch
Browse files

Set default value for BatchWait as ticker does not accept 0

parent 5cd384a2
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment