diff options
author | Nguyen Kien Trung <trung.n.k@gmail.com> | 2019-06-06 16:49:35 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2019-06-06 16:49:35 +0800 |
commit | 2823ce0086736e01cdb7b715d567d5ada445e3e4 (patch) | |
tree | 62b84ae30c6e291a3ac0f871fbb62d3669ed3324 | |
parent | 30c2b1b06dc2ae703d082a46a5316ea89da04a52 (diff) | |
download | go-tangerine-2823ce0086736e01cdb7b715d567d5ada445e3e4.tar.gz go-tangerine-2823ce0086736e01cdb7b715d567d5ada445e3e4.tar.zst go-tangerine-2823ce0086736e01cdb7b715d567d5ada445e3e4.zip |
eth: check for DefaultConfig.NetworkId in test (#17599)
This makes the test work if NetworkId is changed in forks of go-ethereum.
-rw-r--r-- | eth/protocol_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/protocol_test.go b/eth/protocol_test.go index aa43dfa92..e817d673a 100644 --- a/eth/protocol_test.go +++ b/eth/protocol_test.go @@ -64,7 +64,7 @@ func testStatusMsgErrors(t *testing.T, protocol int) { }, { code: StatusMsg, data: statusData{uint32(protocol), 999, td, head.Hash(), genesis.Hash()}, - wantError: errResp(ErrNetworkIdMismatch, "999 (!= 1)"), + wantError: errResp(ErrNetworkIdMismatch, "999 (!= %d)", DefaultConfig.NetworkId), }, { code: StatusMsg, data: statusData{uint32(protocol), DefaultConfig.NetworkId, td, head.Hash(), common.Hash{3}}, |