core: fix failing tests (#22888)

This PR fixes two errors that regressed when EIP-1559 was merged.
This commit is contained in:
Martin Holst Swende
2021-05-18 01:10:28 +02:00
committed by GitHub
parent 94451c2788
commit 67e7f61af7
2 changed files with 19 additions and 4 deletions

View File

@ -1357,8 +1357,8 @@ func TestEIP155Transition(t *testing.T) {
}
})
_, err := blockchain.InsertChain(blocks)
if err != types.ErrInvalidChainId {
t.Error("expected error:", types.ErrInvalidChainId)
if have, want := err, types.ErrInvalidChainId; !errors.Is(have, want) {
t.Errorf("have %v, want %v", have, want)
}
}