tests: adapt dir overwrite test for Go 1.8
In Go 1.8, os.Rename refuses to overwrite an empty directory. Switch to syscall.Rename, which still does the right thing.
This commit is contained in:
parent
cb2d1fbcf8
commit
b056776a01
@ -531,7 +531,7 @@ func TestDirOverwrite(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = os.Rename(dir1, dir2)
|
||||
err = syscall.Rename(dir1, dir2)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user