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:
authorJaime Martinez <jmartinez@gitlab.com>2021-08-25 09:01:26 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-08-25 10:29:46 +0300
commit135c1398b2531103d3aeebaee66f19ef799f1f52 (patch)
tree2a322afad0c37c41afc870305c94f843ad372fc9 /internal/serving/disk
parentf0bbf3c22d67d55457db27e5e41789c26789be82 (diff)
chore: process the first 1000 rules only
Diffstat (limited to 'internal/serving/disk')
-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)