Fixing tmpfs

Signed-off-by: rajasec <rajasec79@gmail.com>
This commit is contained in:
rajasec 2015-08-17 06:22:48 +05:30
parent 744a6b0e7b
commit 8cdc409715
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
"syscall"
"testing" "testing"
"github.com/docker/docker/pkg/mount" "github.com/docker/docker/pkg/mount"
@ -97,6 +98,7 @@ func TestFactoryNewTmpfs(t *testing.T) {
if !found { if !found {
t.Fatalf("Factory Root is not listed in mounts list") t.Fatalf("Factory Root is not listed in mounts list")
} }
defer syscall.Unmount(root, syscall.MNT_DETACH)
} }
func TestFactoryLoadNotExists(t *testing.T) { func TestFactoryLoadNotExists(t *testing.T) {