Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Revert: Undo "Merge pull request #587 from mcastelino/topic/govet"
Browse files Browse the repository at this point in the history
This reverts commit 535be19, reversing
changes made to 7e2466d.

This change broke the Jenkins CI and local unit-test builds (unable to
run them with either go 1.8 or go 1.9).

Fixes #615.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
  • Loading branch information
jodh-intel committed Sep 25, 2017
1 parent 535be19 commit d4954bc
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 825 deletions.
2 changes: 1 addition & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func TestCreateInvalidArgs(t *testing.T) {

for i, d := range data {
err := create(d.containerID, d.bundlePath, d.console, d.pidFilePath, d.detach, d.runtimeConfig)
assert.Errorf(err, "test %d (%+v)", i, d)
assert.Error(err, "test %d (%+v)", i, d)
}
}

Expand Down Expand Up @@ -367,7 +367,7 @@ func TestCreateInvalidConfigJSON(t *testing.T) {

for detach := range []bool{true, false} {
err := create(testContainerID, bundlePath, testConsole, pidFilePath, true, runtimeConfig)
assert.Errorf(err, "%+v", detach)
assert.Error(err, "%+v", detach)
assert.False(vcMock.IsMockError(err))
}
}
Expand Down Expand Up @@ -414,7 +414,7 @@ func TestCreateInvalidContainerType(t *testing.T) {

for detach := range []bool{true, false} {
err := create(testContainerID, bundlePath, testConsole, pidFilePath, true, runtimeConfig)
assert.Errorf(err, "%+v", detach)
assert.Error(err, "%+v", detach)
assert.False(vcMock.IsMockError(err))
}
}
Expand Down Expand Up @@ -462,7 +462,7 @@ func TestCreateContainerInvalid(t *testing.T) {

for detach := range []bool{true, false} {
err := create(testContainerID, bundlePath, testConsole, pidFilePath, true, runtimeConfig)
assert.Errorf(err, "%+v", detach)
assert.Error(err, "%+v", detach)
assert.False(vcMock.IsMockError(err))
}
}
Expand Down Expand Up @@ -637,7 +637,7 @@ func TestCreateCreateCgroupsFilesFail(t *testing.T) {

for detach := range []bool{true, false} {
err := create(testContainerID, bundlePath, testConsole, pidFilePath, true, runtimeConfig)
assert.Errorf(err, "%+v", detach)
assert.Error(err, "%+v", detach)
assert.False(vcMock.IsMockError(err))
}
}
Expand Down Expand Up @@ -713,7 +713,7 @@ func TestCreateCreateCreatePidFileFail(t *testing.T) {

for detach := range []bool{true, false} {
err := create(testContainerID, bundlePath, testConsole, pidFilePath, true, runtimeConfig)
assert.Errorf(err, "%+v", detach)
assert.Error(err, "%+v", detach)
assert.False(vcMock.IsMockError(err))
}
}
Expand Down Expand Up @@ -839,7 +839,7 @@ func TestCreateInvalidKernelParams(t *testing.T) {

for detach := range []bool{true, false} {
err := create(testContainerID, bundlePath, testConsole, pidFilePath, true, runtimeConfig)
assert.Errorf(err, "%+v", detach)
assert.Error(err, "%+v", detach)
assert.False(vcMock.IsMockError(err))
}
}
Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ func TestMainBeforeSubCommands(t *testing.T) {
err := beforeSubcommands(ctx)

if d.expectError {
assert.Errorf(err, "test %d (%+v)", i, d)
assert.Error(err, "test %d (%+v)", i, d)
} else {
assert.NoError(err, "test %d (%+v)", i, d)
}
Expand Down
2 changes: 1 addition & 1 deletion run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func TestRunInvalidArgs(t *testing.T) {

for i, a := range args {
err := run(a.containerID, a.bundle, a.console, a.consoleSocket, a.pidFile, a.detach, a.runtimeConfig)
assert.Errorf(err, "test %d (%+v)", i, a)
assert.Error(err, "test %d (%+v)", i, a)
}
}

Expand Down
7 changes: 3 additions & 4 deletions vendor/github.com/stretchr/testify/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d4954bc

Please sign in to comment.