diff options
author | Jakob Unterwurzacher | 2017-02-20 21:22:05 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-02-20 21:27:37 +0100 |
commit | b056776a013813e251aa37027c3aaa3f1e22d7c8 (patch) | |
tree | 054beb489ea520a659e8a5fcda1aaa70b26226ab /tests/matrix/matrix_test.go | |
parent | cb2d1fbcf849098181cc289f60ceb23932b58377 (diff) |
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.
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r-- | tests/matrix/matrix_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index 8508e5b..1c5d348 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -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) } |