From 8cdc4097155c863185044055a146b69c991a0ad7 Mon Sep 17 00:00:00 2001 From: rajasec Date: Mon, 17 Aug 2015 06:22:48 +0530 Subject: [PATCH] Fixing tmpfs Signed-off-by: rajasec --- libcontainer/factory_linux_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcontainer/factory_linux_test.go b/libcontainer/factory_linux_test.go index 1adcb2623..89f52f113 100644 --- a/libcontainer/factory_linux_test.go +++ b/libcontainer/factory_linux_test.go @@ -7,6 +7,7 @@ import ( "io/ioutil" "os" "path/filepath" + "syscall" "testing" "github.com/docker/docker/pkg/mount" @@ -97,6 +98,7 @@ func TestFactoryNewTmpfs(t *testing.T) { if !found { t.Fatalf("Factory Root is not listed in mounts list") } + defer syscall.Unmount(root, syscall.MNT_DETACH) } func TestFactoryLoadNotExists(t *testing.T) {