Remove unused fields and comments.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu 2017-06-28 16:59:19 +00:00
parent f33514afdb
commit 7ddc85f3ca
2 changed files with 3 additions and 6 deletions

View File

@ -467,7 +467,6 @@ func TestCreateContainer(t *testing.T) {
imageMetadataErr bool
prepareSnapshotErr error
createRootDirErr error
createMetadataErr bool
expectErr bool
expectMeta *metadata.ContainerMetadata
}{

View File

@ -33,12 +33,10 @@ import (
func TestVersion(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
// TODO(random-liu): Check containerd version after containerd fixes its version.
for desc, test := range map[string]struct {
versionRes *versionapi.VersionResponse
versionErr error
expectErr bool
expectedVersion string
}{
"should return error if containerd version returns error": {
versionErr: errors.New("random error"),