@@ -31,7 +31,7 @@ import (
3131func TestContainerStats (t * testing.T ) {
3232 t .Logf ("Create a pod config and run sandbox container" )
3333 sbConfig := PodSandboxConfig ("sandbox1" , "stats" )
34- sb , err := runtimeService .RunPodSandbox (sbConfig )
34+ sb , err := runtimeService .RunPodSandbox (sbConfig , * runtimeHandler )
3535 require .NoError (t , err )
3636 defer func () {
3737 assert .NoError (t , runtimeService .StopPodSandbox (sb ))
@@ -76,7 +76,7 @@ func TestContainerStats(t *testing.T) {
7676func TestContainerListStats (t * testing.T ) {
7777 t .Logf ("Create a pod config and run sandbox container" )
7878 sbConfig := PodSandboxConfig ("running-pod" , "statsls" )
79- sb , err := runtimeService .RunPodSandbox (sbConfig )
79+ sb , err := runtimeService .RunPodSandbox (sbConfig , * runtimeHandler )
8080 require .NoError (t , err )
8181 defer func () {
8282 assert .NoError (t , runtimeService .StopPodSandbox (sb ))
@@ -131,7 +131,7 @@ func TestContainerListStats(t *testing.T) {
131131func TestContainerListStatsWithIdFilter (t * testing.T ) {
132132 t .Logf ("Create a pod config and run sandbox container" )
133133 sbConfig := PodSandboxConfig ("running-pod" , "statsls" )
134- sb , err := runtimeService .RunPodSandbox (sbConfig )
134+ sb , err := runtimeService .RunPodSandbox (sbConfig , * runtimeHandler )
135135 require .NoError (t , err )
136136 defer func () {
137137 assert .NoError (t , runtimeService .StopPodSandbox (sb ))
@@ -191,7 +191,7 @@ func TestContainerListStatsWithIdFilter(t *testing.T) {
191191func TestContainerListStatsWithSandboxIdFilter (t * testing.T ) {
192192 t .Logf ("Create a pod config and run sandbox container" )
193193 sbConfig := PodSandboxConfig ("running-pod" , "statsls" )
194- sb , err := runtimeService .RunPodSandbox (sbConfig )
194+ sb , err := runtimeService .RunPodSandbox (sbConfig , * runtimeHandler )
195195 require .NoError (t , err )
196196 defer func () {
197197 assert .NoError (t , runtimeService .StopPodSandbox (sb ))
@@ -247,7 +247,7 @@ func TestContainerListStatsWithSandboxIdFilter(t *testing.T) {
247247func TestContainerListStatsWithIdSandboxIdFilter (t * testing.T ) {
248248 t .Logf ("Create a pod config and run sandbox container" )
249249 sbConfig := PodSandboxConfig ("running-pod" , "statsls" )
250- sb , err := runtimeService .RunPodSandbox (sbConfig )
250+ sb , err := runtimeService .RunPodSandbox (sbConfig , * runtimeHandler )
251251 require .NoError (t , err )
252252 defer func () {
253253 assert .NoError (t , runtimeService .StopPodSandbox (sb ))
0 commit comments