mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
pytest: make sure we wait for all feerates to be gathered.
We need to wait until we're sure bcli has handed results to lightningd: ``` > assert feerates['perkw']['mutual_close'] == 5000 E assert 6250 == 5000 tests/test_misc.py:1617: AssertionError ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
6f17d8bf0c
commit
2e7ecb98f4
1 changed files with 2 additions and 1 deletions
|
@ -1611,7 +1611,8 @@ def test_feerates(node_factory):
|
|||
|
||||
# Set ECONOMICAL/100 feerate for min and mutual_close
|
||||
l1.set_feerates((15000, 11000, 6250, 5000), True)
|
||||
wait_for(lambda: len(l1.rpc.feerates('perkw')['perkw']) >= len(types) + 2)
|
||||
# Make sure it's digested the bcli plugin results.
|
||||
wait_for(lambda: len(l1.rpc.feerates('perkw')['perkw']['estimates']) == 4)
|
||||
feerates = l1.rpc.feerates('perkw')
|
||||
assert feerates['perkw']['unilateral_close'] == 11000
|
||||
assert feerates['perkw']['mutual_close'] == 5000
|
||||
|
|
Loading…
Add table
Reference in a new issue