mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
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:
parent
1f87331fbc
commit
c898f75449
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue