summaryrefslogtreecommitdiff
path: root/tests/matrix
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-02-20 21:22:05 +0100
committerJakob Unterwurzacher2017-02-20 21:27:37 +0100
commitb056776a013813e251aa37027c3aaa3f1e22d7c8 (patch)
tree054beb489ea520a659e8a5fcda1aaa70b26226ab /tests/matrix
parentcb2d1fbcf849098181cc289f60ceb23932b58377 (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')
-rw-r--r--tests/matrix/matrix_test.go2
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)
}