mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix tests with old cmd function.
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
parent
67fda33197
commit
e201d5bcd4
1 changed files with 3 additions and 1 deletions
|
@ -129,7 +129,9 @@ func TestCreateEchoStdout(t *testing.T) {
|
|||
|
||||
func TestCreateVolumesCreated(t *testing.T) {
|
||||
name := "test_create_volume"
|
||||
cmd(t, "create", "--name", name, "-v", "/foo", "busybox")
|
||||
if out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "create", "--name", name, "-v", "/foo", "busybox")); err != nil {
|
||||
t.Fatal(out, err)
|
||||
}
|
||||
dir, err := inspectFieldMap(name, "Volumes", "/foo")
|
||||
if err != nil {
|
||||
t.Fatalf("Error getting volume host path: %q", err)
|
||||
|
|
Loading…
Add table
Reference in a new issue