aboutsummaryrefslogtreecommitdiff
path: root/backup/backup_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'backup/backup_test.go')
-rw-r--r--backup/backup_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/backup/backup_test.go b/backup/backup_test.go
index 67fbb6a..da14117 100644
--- a/backup/backup_test.go
+++ b/backup/backup_test.go
@@ -49,13 +49,13 @@ func mkfile(t *testing.T, d fs.Dir, name string, exec bool, content []byte) {
t.Fatalf("Could not create file %s: %s", name, err)
}
- rwc, err := f.Open()
+ wc, err := f.OpenWritable()
if err != nil {
t.Fatalf("Could not create file %s: %s", name, err)
}
- defer rwc.Close()
+ defer wc.Close()
- if _, err := rwc.Write(content); err != nil {
+ if _, err := wc.Write(content); err != nil {
t.Fatalf("Could not create file %s: %s", name, err)
}
}