mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-11 07:24:27 +00:00
core: fix failing tests (#22888)
This commit is contained in:
parent
e18553b855
commit
4e7fd897d8
1 changed files with 3 additions and 2 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
@ -1108,8 +1109,8 @@ func TestEIP155Transition(t *testing.T) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
_, err := blockchain.InsertChain(blocks)
|
_, err := blockchain.InsertChain(blocks)
|
||||||
if err != types.ErrInvalidChainId {
|
if have, want := err, types.ErrInvalidChainId; !errors.Is(have, want) {
|
||||||
t.Error("expected error:", types.ErrInvalidChainId)
|
t.Errorf("have %v, want %v", have, want)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue