Merge pull request #95 from Random-Liu/fix-verify

Remove unused fields and comments.
This commit is contained in:
Lantao Liu 2017-06-28 10:21:11 -07:00 committed by GitHub
commit 333ea04846
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
versionRes *versionapi.VersionResponse
versionErr error
expectErr bool
}{
"should return error if containerd version returns error": {
versionErr: errors.New("random error"),