Commit 07d16a2d authored by libangzhu's avatar libangzhu

fix test

parent 1cbfbb1b
......@@ -39,6 +39,7 @@ func TestGetLocalAddr(t *testing.T) {
func TestP2pListen(t *testing.T) {
var node Node
node.listenPort = 3333
node.nodeInfo=&NodeInfo{}
listen1 := newListener("tcp", &node)
assert.Equal(t, true, listen1 != nil)
listen2 := newListener("tcp", &node)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment