diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-12-30 13:56:26 +0100 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-12-30 13:56:26 +0100 |
commit | 8db6891fc69ac49e005467650c4a5ee9d5766e75 (patch) | |
tree | 69ae22fe29fa8949ccf32f42b0ea4ec38c81e769 /backup | |
parent | b40a3866dcd41ee05277255ae70c2e9ed73897b6 (diff) | |
download | petrific-8db6891fc69ac49e005467650c4a5ee9d5766e75.tar.gz petrific-8db6891fc69ac49e005467650c4a5ee9d5766e75.tar.bz2 petrific-8db6891fc69ac49e005467650c4a5ee9d5766e75.zip |
Fix fmtstring errors
Diffstat (limited to 'backup')
-rw-r--r-- | backup/backup_test.go | 2 | ||||
-rw-r--r-- | backup/restore_test.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/backup/backup_test.go b/backup/backup_test.go index 230aa83..3627fff 100644 --- a/backup/backup_test.go +++ b/backup/backup_test.go @@ -24,7 +24,7 @@ func wantObject( } if !bytes.Equal(want, have) { - t.Errorf("Wrong result for %s: (size=%d) %#s", id, len(have), have) + t.Errorf("Wrong result for %s: (size=%d) %#v", id, len(have), have) } } diff --git a/backup/restore_test.go b/backup/restore_test.go index db66e11..96d2752 100644 --- a/backup/restore_test.go +++ b/backup/restore_test.go @@ -29,7 +29,7 @@ func wantFileWithContent(want []byte, exec bool) func(*testing.T, fs.File) { rf := f.(fs.RegularFile) if rf.Executable() != exec { - t.Errorf("Child '%s' has executable bit %b, expected %b", f.Name(), rf.Executable(), exec) + t.Errorf("Child '%s' has executable bit %t, expected %t", f.Name(), rf.Executable(), exec) } rwc, err := rf.Open() @@ -40,7 +40,7 @@ func wantFileWithContent(want []byte, exec bool) func(*testing.T, fs.File) { buf := new(bytes.Buffer) if _, err := io.Copy(buf, rwc); err != nil { - t.Errorf("Could not read content of child '%s': %s", err) + t.Errorf("Could not read content of child '%s': %s", f.Name(), err) return } |