diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-08-25 09:01:26 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-08-25 10:29:46 +0300 |
commit | 135c1398b2531103d3aeebaee66f19ef799f1f52 (patch) | |
tree | 2a322afad0c37c41afc870305c94f843ad372fc9 /internal/serving/disk | |
parent | f0bbf3c22d67d55457db27e5e41789c26789be82 (diff) |
chore: process the first 1000 rules only
Diffstat (limited to 'internal/serving/disk')
-rw-r--r-- | internal/serving/disk/symlink/path_test.go | 9 |
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) |