From b64efbdee165b4f88a57430ca3208760c3887974 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Thu, 22 Jun 2023 08:43:45 -0400 Subject: [PATCH] Better testing --- db/db_ondisk_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) } }