Commit 59a29a4
committed
pytest: fix race in test_peer_anchor_push.
We have to make sure the new tx has been received by bitcoind, otherwise we
could be examining the previous:
```
> check_feerate(l2, total_feerate_perkw, feerate)
tests/test_closing.py:4053:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
node = <fixtures.LightningNode object at 0x7f645789ee90>
actual_feerate = 14000.0, expected_feerate = 15000
def check_feerate(node, actual_feerate, expected_feerate):
# Feerate can't be lower.
> assert actual_feerate > expected_feerate - 2
```
Signed-off-by: Rusty Russell <[email protected]>1 parent 07d8c60 commit 59a29a4
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4042 | 4042 | | |
4043 | 4043 | | |
4044 | 4044 | | |
| 4045 | + | |
4045 | 4046 | | |
4046 | 4047 | | |
4047 | 4048 | | |
| |||
0 commit comments