From 135c1398b2531103d3aeebaee66f19ef799f1f52 Mon Sep 17 00:00:00 2001 From: Jaime Martinez Date: Wed, 25 Aug 2021 16:01:26 +1000 Subject: chore: process the first 1000 rules only --- internal/serving/disk/symlink/path_test.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'internal/serving') 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) -- cgit v1.2.3