From 3da568495758ccc4a2641fefbb29e14f2aba21c1 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Sat, 1 Dec 2018 11:06:24 -0800 Subject: [PATCH] Fix test failure introduced by other PR --- node/node_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/node_test.go b/node/node_test.go index 5967c7508..4c6e3fc46 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -152,7 +152,8 @@ func exitServer() { } func TestPingPongHandler(test *testing.T) { - leader := p2p.Peer{IP: "127.0.0.1", Port: "8881"} + _, pubKey := utils.GenKey("127.0.0.1", "8881") + leader := p2p.Peer{IP: "127.0.0.1", Port: "8881", PubKey: pubKey} // validator := p2p.Peer{IP: "127.0.0.1", Port: "9991"} consensus := consensus.New(leader, "0", []p2p.Peer{leader}, leader) node := New(consensus, nil, leader)