aboutsummaryrefslogtreecommitdiff
path: root/tx_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tx_test.go')
-rw-r--r--tx_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tx_test.go b/tx_test.go
index 7a274e4..18ff166 100644
--- a/tx_test.go
+++ b/tx_test.go
@@ -571,7 +571,7 @@ func TestTx_CopyFile_Error_Meta(t *testing.T) {
if err := db.View(func(tx *bolt.Tx) error {
return tx.Copy(&failWriter{})
}); err == nil || err.Error() != "meta copy: error injected for tests" {
- t.Fatal("unexpected error: %s", err)
+ t.Fatalf("unexpected error: %v", err)
}
}
@@ -598,7 +598,7 @@ func TestTx_CopyFile_Error_Normal(t *testing.T) {
if err := db.View(func(tx *bolt.Tx) error {
return tx.Copy(&failWriter{3 * db.Info().PageSize})
}); err == nil || err.Error() != "error injected for tests" {
- t.Fatal("unexpected error: %s", err)
+ t.Fatalf("unexpected error: %v", err)
}
}