tests: symlink to "/" instead of "/etc/motd"
This file does not exist on all systems, causing spurious test failures. See #40, #43
This commit is contained in:
parent
95db38912b
commit
67a959eebf
@ -556,7 +556,7 @@ func TestLongNames(t *testing.T) {
|
|||||||
}
|
}
|
||||||
// Long symlink
|
// Long symlink
|
||||||
n255s := string(bytes.Repeat([]byte("s"), 255))
|
n255s := string(bytes.Repeat([]byte("s"), 255))
|
||||||
err = os.Symlink("/etc/motd", wd+n255s)
|
err = os.Symlink("/", wd+n255s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user