We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e8cbf2 commit c4f8716Copy full SHA for c4f8716
tests/test_plugin.py
@@ -3229,7 +3229,8 @@ def test_autoclean(node_factory):
3229
assert only_one(invs)['status'] == 'unpaid'
3230
time.sleep(1)
3231
3232
- assert l3.rpc.autoclean_status()['autoclean']['expiredinvoices']['cleaned'] == 1
+ # We can actually race between the delete and this being updated!
3233
+ wait_for(lambda: l3.rpc.autoclean_status()['autoclean']['expiredinvoices']['cleaned'] == 1)
3234
3235
# Keeps settings across restarts
3236
l3.restart()
0 commit comments