core/rawdb: fix freezer close sync error message (#35135)

Print the expected freezer close sync error before the actual value in
TestFreezerCloseSync. The assertion already compared have and want
correctly, but the failure message reported them in the wrong order.
This commit is contained in:
cui 2026-07-02 16:44:04 +08:00 committed by GitHub
parent b4f749af11
commit df51c49770
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -516,7 +516,7 @@ func TestFreezerCloseSync(t *testing.T) {
if err := f.SyncAncient(); err == nil {
t.Fatalf("want error, have nil")
} else if have, want := err.Error(), "[closed closed]"; have != want {
t.Fatalf("want %v, have %v", have, want)
t.Fatalf("want %v, have %v", want, have)
}
}