@@ -106,6 +106,7 @@ func TestGather(t *testing.T) {
106106 Delay : internalDuration ,
107107 Period : internalDuration ,
108108 RateLimit : 200 ,
109+ BatchSize : 500 ,
109110 }
110111
111112 var acc testutil.Accumulator
@@ -137,6 +138,7 @@ func TestGather_MultipleNamespaces(t *testing.T) {
137138 Delay : internalDuration ,
138139 Period : internalDuration ,
139140 RateLimit : 200 ,
141+ BatchSize : 500 ,
140142 }
141143
142144 var acc testutil.Accumulator
@@ -213,6 +215,7 @@ func TestSelectMetrics(t *testing.T) {
213215 Delay : internalDuration ,
214216 Period : internalDuration ,
215217 RateLimit : 200 ,
218+ BatchSize : 500 ,
216219 Metrics : []* Metric {
217220 {
218221 MetricNames : []string {"Latency" , "RequestCount" },
@@ -258,6 +261,7 @@ func TestGenerateStatisticsInputParams(t *testing.T) {
258261 Namespaces : []string {namespace },
259262 Delay : internalDuration ,
260263 Period : internalDuration ,
264+ BatchSize : 500 ,
261265 }
262266
263267 require .NoError (t , c .initializeCloudWatch ())
@@ -297,6 +301,7 @@ func TestGenerateStatisticsInputParamsFiltered(t *testing.T) {
297301 Namespaces : []string {namespace },
298302 Delay : internalDuration ,
299303 Period : internalDuration ,
304+ BatchSize : 500 ,
300305 }
301306
302307 require .NoError (t , c .initializeCloudWatch ())
@@ -336,6 +341,7 @@ func TestUpdateWindow(t *testing.T) {
336341 Namespace : "AWS/ELB" ,
337342 Delay : internalDuration ,
338343 Period : internalDuration ,
344+ BatchSize : 500 ,
339345 }
340346
341347 now := time .Now ()
@@ -364,6 +370,7 @@ func TestProxyFunction(t *testing.T) {
364370 HTTPProxy : proxy.HTTPProxy {
365371 HTTPProxyURL : "http://www.penguins.com" ,
366372 },
373+ BatchSize : 500 ,
367374 }
368375
369376 proxyFunction , err := c .HTTPProxy .Proxy ()
@@ -378,7 +385,11 @@ func TestProxyFunction(t *testing.T) {
378385}
379386
380387func TestCombineNamespaces (t * testing.T ) {
381- c := & CloudWatch {Namespace : "AWS/ELB" , Namespaces : []string {"AWS/EC2" , "AWS/Billing" }}
388+ c := & CloudWatch {
389+ Namespace : "AWS/ELB" ,
390+ Namespaces : []string {"AWS/EC2" , "AWS/Billing" },
391+ BatchSize : 500 ,
392+ }
382393
383394 require .NoError (t , c .Init ())
384395 require .Equal (t , []string {"AWS/EC2" , "AWS/Billing" , "AWS/ELB" }, c .Namespaces )
0 commit comments