modify code to compile on updated containerd
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
@@ -23,7 +23,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/containerd/containerd/api/types/container"
|
||||
"github.com/containerd/containerd/api/types/task"
|
||||
|
||||
"github.com/kubernetes-incubator/cri-containerd/pkg/metadata"
|
||||
ostesting "github.com/kubernetes-incubator/cri-containerd/pkg/os/testing"
|
||||
@@ -40,7 +40,7 @@ func TestRemovePodSandbox(t *testing.T) {
|
||||
Name: testName,
|
||||
}
|
||||
for desc, test := range map[string]struct {
|
||||
sandboxContainers []container.Container
|
||||
sandboxContainers []task.Task
|
||||
injectMetadata bool
|
||||
injectContainerdErr error
|
||||
injectFSErr error
|
||||
@@ -55,7 +55,7 @@ func TestRemovePodSandbox(t *testing.T) {
|
||||
},
|
||||
"should return error when sandbox container is not deleted": {
|
||||
injectMetadata: true,
|
||||
sandboxContainers: []container.Container{{ID: testID}},
|
||||
sandboxContainers: []task.Task{{ID: testID}},
|
||||
expectErr: true,
|
||||
expectCalls: []string{"info"},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user