Fixing tmpfs
Signed-off-by: rajasec <rajasec79@gmail.com>
This commit is contained in:
parent
744a6b0e7b
commit
8cdc409715
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue