mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 02:38:12 +00:00
Fixing unit tests in k8s.io/kubernetes/pkg/volume/util/subpath on Windows
This commit is contained in:
@@ -40,7 +40,7 @@ func makeLink(link, target string) error {
|
|||||||
func TestDoSafeMakeDir(t *testing.T) {
|
func TestDoSafeMakeDir(t *testing.T) {
|
||||||
base, err := ioutil.TempDir("", "TestDoSafeMakeDir")
|
base, err := ioutil.TempDir("", "TestDoSafeMakeDir")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(err.Error())
|
t.Fatalf("failed to create temporary directory: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
defer os.RemoveAll(base)
|
defer os.RemoveAll(base)
|
||||||
@@ -136,7 +136,7 @@ func TestDoSafeMakeDir(t *testing.T) {
|
|||||||
func TestLockAndCheckSubPath(t *testing.T) {
|
func TestLockAndCheckSubPath(t *testing.T) {
|
||||||
base, err := ioutil.TempDir("", "TestLockAndCheckSubPath")
|
base, err := ioutil.TempDir("", "TestLockAndCheckSubPath")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(err.Error())
|
t.Fatalf("failed to create temporary directory: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
defer os.RemoveAll(base)
|
defer os.RemoveAll(base)
|
||||||
@@ -240,7 +240,7 @@ func TestLockAndCheckSubPath(t *testing.T) {
|
|||||||
func TestLockAndCheckSubPathWithoutSymlink(t *testing.T) {
|
func TestLockAndCheckSubPathWithoutSymlink(t *testing.T) {
|
||||||
base, err := ioutil.TempDir("", "TestLockAndCheckSubPathWithoutSymlink")
|
base, err := ioutil.TempDir("", "TestLockAndCheckSubPathWithoutSymlink")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(err.Error())
|
t.Fatalf("failed to create temporary directory: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
defer os.RemoveAll(base)
|
defer os.RemoveAll(base)
|
||||||
@@ -344,7 +344,7 @@ func TestLockAndCheckSubPathWithoutSymlink(t *testing.T) {
|
|||||||
func TestFindExistingPrefix(t *testing.T) {
|
func TestFindExistingPrefix(t *testing.T) {
|
||||||
base, err := ioutil.TempDir("", "TestFindExistingPrefix")
|
base, err := ioutil.TempDir("", "TestFindExistingPrefix")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(err.Error())
|
t.Fatalf("failed to create temporary directory: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
defer os.RemoveAll(base)
|
defer os.RemoveAll(base)
|
||||||
|
|||||||
Reference in New Issue
Block a user