MCPcopy Create free account
hub / github.com/ElementsProject/elements / check_peer_info

Method check_peer_info

test/functional/p2p_ping.py:44–48  ·  view source on GitHub ↗
(self, *, pingtime, minping, pingwait)

Source from the content-addressed store, hash-verified

42 self.extra_args = [['-peertimeout=1']]
43
44 def check_peer_info(self, *, pingtime, minping, pingwait):
45 stats = self.nodes[0].getpeerinfo()[0]
46 assert_equal(stats.pop('pingtime', None), pingtime)
47 assert_equal(stats.pop('minping', None), minping)
48 assert_equal(stats.pop('pingwait', None), pingwait)
49
50 def mock_forward(self, delta):
51 self.mock_time += delta

Callers 1

run_testMethod · 0.95

Calls 1

assert_equalFunction · 0.90

Tested by

no test coverage detected