From 2823ce0086736e01cdb7b715d567d5ada445e3e4 Mon Sep 17 00:00:00 2001 From: Nguyen Kien Trung Date: Thu, 6 Jun 2019 04:49:35 -0400 Subject: [PATCH] eth: check for DefaultConfig.NetworkId in test (#17599) This makes the test work if NetworkId is changed in forks of go-ethereum. --- eth/protocol_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}},