eth: check for DefaultConfig.NetworkId in test (#17599)

This makes the test work if NetworkId is changed in forks of go-ethereum.
This commit is contained in:
Nguyen Kien Trung 2019-06-06 04:49:35 -04:00 committed by Felix Lange
parent 30c2b1b06d
commit 2823ce0086

View File

@ -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}},