From e16bc630d3cc15da269c5cdaeaa525eea5bd0c74 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Wed, 29 Sep 2021 18:25:30 +0200 Subject: okay EvalSymlinks() should be what we want instead of Clean() --- repo_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repo_test.go b/repo_test.go index 9e72ac0..5a0abea 100644 --- a/repo_test.go +++ b/repo_test.go @@ -177,7 +177,10 @@ func TestSymlinks(t *testing.T) { multi := io.MultiWriter(&output, os.Stderr) logger.SetOutput(multi) defer logger.SetOutput(os.Stderr) - tmpDir := filepath.Clean(t.TempDir()) + tmpDir, err := filepath.EvalSymlinks(t.TempDir()) + if err != nil { + t.Fatal(err) + } extDir := t.TempDir() f, err := os.Create(filepath.Join(tmpDir, "existing")) if err != nil { -- cgit v1.2.3