Merge pull request #130623 from marosset/fix-pkg-volume-util-subpath-unit-tests-windows

Fixing unit tests in k8s.io/kubernetes/pkg/volume/util/subpath on Win…
This commit is contained in:
Kubernetes Prow Robot 2025-03-07 10:39:48 -08:00 committed by GitHub
commit a6ad9aa8ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ func makeLink(link, target string) error {
func TestDoSafeMakeDir(t *testing.T) {
base, err := ioutil.TempDir("", "TestDoSafeMakeDir")
if err != nil {
t.Fatalf(err.Error())
t.Fatalf("failed to create temporary directory: %v", err)
}
defer os.RemoveAll(base)
@ -136,7 +136,7 @@ func TestDoSafeMakeDir(t *testing.T) {
func TestLockAndCheckSubPath(t *testing.T) {
base, err := ioutil.TempDir("", "TestLockAndCheckSubPath")
if err != nil {
t.Fatalf(err.Error())
t.Fatalf("failed to create temporary directory: %v", err)
}
defer os.RemoveAll(base)
@ -240,7 +240,7 @@ func TestLockAndCheckSubPath(t *testing.T) {
func TestLockAndCheckSubPathWithoutSymlink(t *testing.T) {
base, err := ioutil.TempDir("", "TestLockAndCheckSubPathWithoutSymlink")
if err != nil {
t.Fatalf(err.Error())
t.Fatalf("failed to create temporary directory: %v", err)
}
defer os.RemoveAll(base)
@ -344,7 +344,7 @@ func TestLockAndCheckSubPathWithoutSymlink(t *testing.T) {
func TestFindExistingPrefix(t *testing.T) {
base, err := ioutil.TempDir("", "TestFindExistingPrefix")
if err != nil {
t.Fatalf(err.Error())
t.Fatalf("failed to create temporary directory: %v", err)
}
defer os.RemoveAll(base)