diff --git a/container_test.go b/container_test.go index 801e76bf8..8c8be971a 100644 --- a/container_test.go +++ b/container_test.go @@ -1529,7 +1529,7 @@ func TestMultipleVolumesFrom(t *testing.T) { runtime := mkRuntime(t) defer nuke(runtime) - container, err := runtime.Create(&Config{ + container, _, err := runtime.Create(&Config{ Image: GetTestImage(runtime).ID, Cmd: []string{"sh", "-c", "echo -n bar > /test/foo"}, Volumes: map[string]struct{}{"/test": {}}, @@ -1556,7 +1556,7 @@ func TestMultipleVolumesFrom(t *testing.T) { t.Fail() } - container2, err := runtime.Create( + container2, _, err := runtime.Create( &Config{ Image: GetTestImage(runtime).ID, Cmd: []string{"sh", "-c", "echo -n bar > /other/foo"}, @@ -1577,7 +1577,7 @@ func TestMultipleVolumesFrom(t *testing.T) { t.Fatal(err) } - container3, err := runtime.Create( + container3, _, err := runtime.Create( &Config{ Image: GetTestImage(runtime).ID, Cmd: []string{"/bin/echo", "-n", "foobar"}, diff --git a/utils/utils_test.go b/utils/utils_test.go index cc7037ceb..a5fef4e28 100644 --- a/utils/utils_test.go +++ b/utils/utils_test.go @@ -423,7 +423,10 @@ func TestDependencyGraph(t *testing.T) { } func TestParsePortMapping(t *testing.T) { - data := PartParser("ip:public:private", "192.168.1.1:80:8080") + data, err := PartParser("ip:public:private", "192.168.1.1:80:8080") + if err != nil { + t.Fatal(err) + } if len(data) != 3 { t.FailNow()