diff --git a/db/db_ondisk_test.go b/db/db_ondisk_test.go index 2f4dd033..7ca59fa5 100644 --- a/db/db_ondisk_test.go +++ b/db/db_ondisk_test.go @@ -358,7 +358,7 @@ func Test_WALReplayFailures(t *testing.T) { err := ReplayWAL(filepath.Join(dbDir, "foo.db"), []string{filepath.Join(walDir, "foo.db-wal")}, false) if err != ErrWALReplayDirectoryMismatch { - t.Fatalf("expected ErrWALReplayDirectoryMismatch, got %s", err.Error()) + t.Fatalf("expected %s, got %s", ErrWALReplayDirectoryMismatch, err.Error()) } }