mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix typo in TestBindMounts (runContainer called without image)
This commit is contained in:
parent
04cd0a392b
commit
68b09cbe3d
1 changed files with 1 additions and 1 deletions
|
@ -1174,7 +1174,7 @@ func TestBindMounts(t *testing.T) {
|
|||
readFile(path.Join(tmpDir, "holla"), t) // Will fail if the file doesn't exist
|
||||
|
||||
// test mounting to an illegal destination directory
|
||||
if _, err := runContainer(r, []string{"-v", fmt.Sprintf("%s:.", tmpDir), "ls", "."}, nil); err == nil {
|
||||
if _, err := runContainer(r, []string{"-v", fmt.Sprintf("%s:.", tmpDir), "_", "ls", "."}, nil); err == nil {
|
||||
t.Fatal("Container bind mounted illegal directory")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue