From c5108358c6bf9413af7f48a925db537dd2ab8725 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Thu, 6 Sep 2018 17:01:10 -0400 Subject: [PATCH] used DefaultConfig.NetworkId instead of hardcoded value 1 --- 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 aa43dfa920..e817d673a6 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}},