diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-10-08 23:04:00 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-01-24 17:39:46 +0300 |
commit | 3c8b844011a8a7cf18c7589900ba7f12b2ebf570 (patch) | |
tree | 925d6dbeafb06f18a045d0574b8c4487f79797a7 /internal/serving | |
parent | 136471e8d5a582236fb0f9565da3b0114a048b1e (diff) |
test: replace tmpdir workaround with native T tmp
Diffstat (limited to 'internal/serving')
-rw-r--r-- | internal/serving/disk/symlink/path_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/serving/disk/symlink/path_test.go b/internal/serving/disk/symlink/path_test.go index 59cb685f..10957a36 100644 --- a/internal/serving/disk/symlink/path_test.go +++ b/internal/serving/disk/symlink/path_test.go @@ -86,7 +86,7 @@ func testEvalSymlinks(t *testing.T, wd, path, want string) { } func TestEvalSymlinks(t *testing.T) { - _, tmpDir := testhelpers.TmpDir(t, "symlink_tests") + _, tmpDir := testhelpers.TmpDir(t) // Create the symlink farm using relative paths. for _, d := range EvalSymlinksTestDirs { @@ -124,7 +124,7 @@ func TestEvalSymlinks(t *testing.T) { } func TestEvalSymlinksIsNotExist(t *testing.T) { - root, _ := testhelpers.TmpDir(t, "symlink_tests") + root, _ := testhelpers.TmpDir(t) _, err := symlink.EvalSymlinks(context.Background(), root, "notexist") if !errors.Is(err, fs.ErrNotExist) { @@ -144,7 +144,7 @@ func TestEvalSymlinksIsNotExist(t *testing.T) { } func TestIssue13582(t *testing.T) { - root, tmpDir := testhelpers.TmpDir(t, "symlink_tests") + root, tmpDir := testhelpers.TmpDir(t) dir := filepath.Join(tmpDir, "dir") err := os.Mkdir(dir, 0755) |