mirror of
https://github.com/moby/moby.git
synced 2025-12-12 10:01:33 +03:00
integ-cli: fix cleanup in test which mounts tmpfs
Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
@@ -1257,6 +1257,7 @@ func TestRunWithVolumesIsRecursive(t *testing.T) {
|
|||||||
if err := mount.Mount("tmpfs", tmpfsDir, "tmpfs", ""); err != nil {
|
if err := mount.Mount("tmpfs", tmpfsDir, "tmpfs", ""); err != nil {
|
||||||
t.Fatalf("failed to create a tmpfs mount at %s - %s", tmpfsDir, err)
|
t.Fatalf("failed to create a tmpfs mount at %s - %s", tmpfsDir, err)
|
||||||
}
|
}
|
||||||
|
defer mount.Unmount(tmpfsDir)
|
||||||
|
|
||||||
f, err := ioutil.TempFile(tmpfsDir, "touch-me")
|
f, err := ioutil.TempFile(tmpfsDir, "touch-me")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user