Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/serving/disk/symlink/path_test.go')
-rw-r--r--internal/serving/disk/symlink/path_test.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/internal/serving/disk/symlink/path_test.go b/internal/serving/disk/symlink/path_test.go
index 66b4fceb..c9da51c3 100644
--- a/internal/serving/disk/symlink/path_test.go
+++ b/internal/serving/disk/symlink/path_test.go
@@ -85,8 +85,7 @@ func testEvalSymlinks(t *testing.T, wd, path, want string) {
}
func TestEvalSymlinks(t *testing.T) {
- _, tmpDir, cleanup := testhelpers.TmpDir(t, "symlink_tests")
- defer cleanup()
+ _, tmpDir := testhelpers.TmpDir(t, "symlink_tests")
// Create the symlink farm using relative paths.
for _, d := range EvalSymlinksTestDirs {
@@ -124,8 +123,7 @@ func TestEvalSymlinks(t *testing.T) {
}
func TestEvalSymlinksIsNotExist(t *testing.T) {
- root, _, cleanup := testhelpers.TmpDir(t, "symlink_tests")
- defer cleanup()
+ root, _ := testhelpers.TmpDir(t, "symlink_tests")
_, err := symlink.EvalSymlinks(context.Background(), root, "notexist")
if !os.IsNotExist(err) {
@@ -145,8 +143,7 @@ func TestEvalSymlinksIsNotExist(t *testing.T) {
}
func TestIssue13582(t *testing.T) {
- root, tmpDir, cleanup := testhelpers.TmpDir(t, "symlink_tests")
- defer cleanup()
+ root, tmpDir := testhelpers.TmpDir(t, "symlink_tests")
dir := filepath.Join(tmpDir, "dir")
err := os.Mkdir(dir, 0755)