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 imageMetadataErr bool
prepareSnapshotErr error prepareSnapshotErr error
createRootDirErr error createRootDirErr error
createMetadataErr bool
expectErr bool expectErr bool
expectMeta *metadata.ContainerMetadata expectMeta *metadata.ContainerMetadata
}{ }{

View File

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