@@ -214,12 +214,9 @@ var _ = framework.KubeDescribe("Container", func() {
214
214
215
215
By ("start container" )
216
216
startContainer (rc , containerID )
217
- filter := & runtimeapi.ContainerStatsFilter {
218
- Id : containerID ,
219
- }
220
217
221
218
By ("test container stats" )
222
- stats := listContainerStats (rc , filter )
219
+ stats := listContainerStats (rc , nil )
223
220
Expect (statFound (stats , containerID )).To (BeTrue (), "Stats should be found" )
224
221
})
225
222
@@ -239,21 +236,10 @@ var _ = framework.KubeDescribe("Container", func() {
239
236
startContainer (rc , thirdContainerID )
240
237
241
238
By ("test containers stats" )
242
- firstFilter := & runtimeapi.ContainerStatsFilter {
243
- Id : firstContainerID ,
244
- }
245
- firstStats := listContainerStats (rc , firstFilter )
246
- secondFilter := & runtimeapi.ContainerStatsFilter {
247
- Id : secondContainerID ,
248
- }
249
- secondStats := listContainerStats (rc , secondFilter )
250
- thirdFilter := & runtimeapi.ContainerStatsFilter {
251
- Id : thirdContainerID ,
252
- }
253
- thirdStats := listContainerStats (rc , thirdFilter )
254
- Expect (statFound (firstStats , firstContainerID )).To (BeTrue (), "Stats should be found" )
255
- Expect (statFound (secondStats , secondContainerID )).To (BeTrue (), "Stats should be found" )
256
- Expect (statFound (thirdStats , thirdContainerID )).To (BeTrue (), "Stats should be found" )
239
+ stats := listContainerStats (rc , nil )
240
+ Expect (statFound (stats , firstContainerID )).To (BeTrue (), "Stats should be found" )
241
+ Expect (statFound (stats , secondContainerID )).To (BeTrue (), "Stats should be found" )
242
+ Expect (statFound (stats , thirdContainerID )).To (BeTrue (), "Stats should be found" )
257
243
})
258
244
})
259
245
0 commit comments