Skip to content

Commit

Permalink
core: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed May 17, 2021
1 parent 7650bf7 commit c1019ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit c1019ea

Please sign in to comment.