mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
pytest: fix flake in test_gossip.py::test_addgossip
We can miss it in both logs, so wait for it instead: ``` 2021-09-22T07:25:59.1582950Z > l3.rpc.addgossip(ann.split()[3]) 2021-09-22T07:25:59.1583911Z E AttributeError: 'NoneType' object has no attribute 'split' ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
79e09b92ef
commit
be8e45b16d
1 changed files with 2 additions and 3 deletions
|
@ -1933,9 +1933,8 @@ def test_addgossip(node_factory):
|
|||
# 0x0100 = channel_announcement
|
||||
# 0x0102 = channel_update
|
||||
# 0x0101 = node_announcement
|
||||
ann = l1.daemon.is_in_log(r"\[OUT\] 0100.*")
|
||||
if ann is None:
|
||||
ann = l2.daemon.is_in_log(r"\[OUT\] 0100.*")
|
||||
l1.daemon.logsearch_start = 0
|
||||
ann = l1.daemon.wait_for_log(r"\[OUT\] 0100.*")
|
||||
|
||||
upd1 = l1.daemon.is_in_log(r"\[OUT\] 0102.*")
|
||||
upd2 = l2.daemon.is_in_log(r"\[OUT\] 0102.*")
|
||||
|
|
Loading…
Add table
Reference in a new issue