summary: fix test flakes

This commit is contained in:
Michael Schmoock
2020-11-23 10:11:28 +01:00
committed by Christian Decker
parent 2a798864f8
commit 355f0e7745

View File

@@ -173,7 +173,7 @@ def test_summary_avail_leadwin():
def test_summary_persist(node_factory): def test_summary_persist(node_factory):
# in order to give the PeerThread a chance in a unit test # in order to give the PeerThread a chance in a unit test
# we need to give it a low interval # we need to give it a low interval
opts = {'summary-availability-interval' : 0.1} opts = {'summary-availability-interval': 0.1, 'may_reconnect': True}
opts.update(pluginopt) opts.update(pluginopt)
l1, l2 = node_factory.line_graph(2, opts=opts) l1, l2 = node_factory.line_graph(2, opts=opts)
@@ -181,6 +181,7 @@ def test_summary_persist(node_factory):
time.sleep(0.5) # wait a bit for the PeerThread to capture data time.sleep(0.5) # wait a bit for the PeerThread to capture data
s1 = l1.rpc.summary() s1 = l1.rpc.summary()
l1.restart() l1.restart()
l1.connect(l2)
s2 = l1.rpc.summary() s2 = l1.rpc.summary()
# then # then