mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #9490 from jfrazelle/fix-test-cmd-eff
Fix tests with old cmd function.
This commit is contained in:
commit
e2a4b730ca
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