aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/blockchain_test.go')
-rw-r--r--core/blockchain_test.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/blockchain_test.go b/core/blockchain_test.go
index dae857f01..934ae74e1 100644
--- a/core/blockchain_test.go
+++ b/core/blockchain_test.go
@@ -1226,11 +1226,8 @@ func TestEIP155Transition(t *testing.T) {
block.AddTx(tx)
}
})
- errExp := "Invalid transaction chain id. Current chain id: 1 tx chain id: 2"
_, err := blockchain.InsertChain(blocks)
- if err == nil {
- t.Error("expected transaction chain id error")
- } else if err.Error() != errExp {
- t.Error("expected:", errExp, "got:", err)
+ if err != types.ErrInvalidChainId {
+ t.Error("expected error:", types.ErrInvalidChainId)
}
}