Created
November 29, 2017 21:48
-
-
Save anonymous/82621a20375ffdaf01a1093629fbd1b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[31m[1m________________________ test_gossip[lightning_eclair] _________________________[0m | |
node_factory = <test.NodeFactory object at 0x7fb75ca53048> | |
bitcoind = <utils.BitcoinD object at 0x7fb768e47198> | |
impls = (<class 'lightningd.LightningNode'>, <class 'eclair.EclairNode'>) | |
[1m @pytest.mark.parametrize("impls", product(impls, repeat=2), ids=idfn)[0m | |
[1m def test_gossip(node_factory, bitcoind, impls):[0m | |
[1m """ Create a network of lightningd nodes and connect to it using 2 new nodes[0m | |
[1m """[0m | |
[1m # These are the nodes we really want to test[0m | |
[1m node1 = node_factory.get_node(implementation=impls[0])[0m | |
[1m node2 = node_factory.get_node(implementation=impls[1])[0m | |
[1m [0m | |
[1m # Using lightningd since it is quickest to start up[0m | |
[1m nodes = [node_factory.get_node(implementation=LightningNode) for _ in range(5)][0m | |
[1m for n1, n2 in zip(nodes[:4], nodes[1:]):[0m | |
[1m n1.connect('localhost', n2.daemon.port, n2.id())[0m | |
[1m n1.addfunds(bitcoind, 2 * 10**7)[0m | |
[1m n1.openchannel(n2.id(), 'localhost', n2.daemon.port, 10**7)[0m | |
[1m time.sleep(1)[0m | |
[1m bitcoind.rpc.generate(6)[0m | |
[1m [0m | |
[1m # Wait for gossip to settle[0m | |
[1m for n in nodes:[0m | |
[1m> wait_for(lambda: len(n.getnodes()) == 5)[0m | |
[31m[1mtest.py[0m:231: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
success = <function test_gossip.<locals>.<lambda> at 0x7fb743aa0730> | |
timeout = 30, interval = 1 | |
[1m def wait_for(success, timeout=30, interval=1):[0m | |
[1m start_time = time.time()[0m | |
[1m while not success() and time.time() < start_time + timeout:[0m | |
[1m time.sleep(interval)[0m | |
[1m if time.time() > start_time + timeout:[0m | |
[1m> raise ValueError("Error waiting for {}", success)[0m | |
[31m[1mE ValueError: ('Error waiting for {}', <function test_gossip.<locals>.<lambda> at 0x7fb743aa0730>)[0m | |
[31m[1mtest.py[0m:111: ValueError | |
---------------------------- Captured stdout setup ----------------------------- | |
DEBUG:proc:lightningd(4792): peer 03d162bf6860fca15145a72a10b674db0910f6dc619f9f7e1fcaa50958becaef84: ... Owning subdaemon lightning_channeld died (33792) | |
DEBUG:proc:lightning_gossipd(5023): TRACE: Received channel_update for channel 593:6:1(0) | |
DEBUG:proc:lightning_gossipd(5023): TRACE: Channel 593:6:1(2) was updated. | |
DEBUG:proc:lightning_gossipd(5023): TRACE: Forgetting remote peer 03d162bf6860fca15145a72a10b674db0910f6dc619f9f7e1fcaa50958becaef84 | |
DEBUG:proc:lightning_gossipd(5023): TRACE: req: type WIRE_GOSSIPCTL_REACH_PEER len 35 | |
DEBUG:proc:lightning_gossipd(5023): TRACE: No address known for 03d162bf6860fca15145a72a10b674db0910f6dc619f9f7e1fcaa50958becaef84, giving up | |