We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db81ec0 + 109d43e commit 65a3150Copy full SHA for 65a3150
fs/ops_test.go
@@ -3,7 +3,6 @@ package fs_test
3
import (
4
"os"
5
"path/filepath"
6
- "runtime"
7
"strings"
8
"testing"
9
"time"
@@ -31,14 +30,8 @@ func TestFromDirSymlink(t *testing.T) {
31
30
dir := fs.NewDir(t, "test-from-dir", fs.FromDir("testdata/copy-test-with-symlink"))
32
defer dir.Remove()
33
34
- currentdir, err := os.Getwd()
35
- assert.NilError(t, err)
36
-
37
link2 := filepath.FromSlash("../2")
38
- link3 := "/some/inexistent/link"
39
- if runtime.GOOS == "windows" {
40
- link3 = filepath.Join(filepath.VolumeName(currentdir), link3)
41
- }
+ link3 := filepath.FromSlash("/some/inexistent/link")
42
43
expected := fs.Expected(t,
44
fs.WithFile("1", "1\n"),
0 commit comments