core/rawdb: fix freezer close sync error message

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:
Weixie Cui 2026-06-09 20:00:00 +08:00
parent 1f87331fbc
commit c898f75449

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)
}
}