File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2302,7 +2302,7 @@ def test_channel_reenable(self):
2302
2302
l2 .daemon .wait_for_log ('Received node_announcement for node {}' .format (l1 .info ['id' ]))
2303
2303
2304
2304
# Both directions should be active before the restart
2305
- assert [c ['active' ] for c in l1 .rpc .getchannels ()['channels' ]] == [True , True ]
2305
+ wait_for ( lambda : [c ['active' ] for c in l1 .rpc .getchannels ()['channels' ]] == [True , True ])
2306
2306
2307
2307
# Restart l2, will cause l1 to reconnect
2308
2308
l2 .stop ()
@@ -2311,7 +2311,7 @@ def test_channel_reenable(self):
2311
2311
# Now they should sync and re-establish again
2312
2312
l1 .daemon .wait_for_log ('Received node_announcement for node {}' .format (l2 .info ['id' ]))
2313
2313
l2 .daemon .wait_for_log ('Received node_announcement for node {}' .format (l1 .info ['id' ]))
2314
- assert [c ['active' ] for c in l1 .rpc .getchannels ()['channels' ]] == [True , True ]
2314
+ wait_for ( lambda : [c ['active' ] for c in l1 .rpc .getchannels ()['channels' ]] == [True , True ])
2315
2315
2316
2316
@unittest .skipIf (not DEVELOPER , "needs DEVELOPER=1" )
2317
2317
def test_update_fee (self ):
You can’t perform that action at this time.
0 commit comments