File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 33from time import sleep
44
55from scenarios .utils import ensure_miner
6- from warnet .utils import channel_match
76from warnet .test_framework_bridge import WarnetTestFramework
7+ from warnet .utils import channel_match
88
99
1010def cli_help ():
@@ -116,7 +116,7 @@ def funded_lnnodes():
116116 source_node .update_channel_policy (chan_pt , data ["source_policy" ])
117117
118118 while True :
119- self .log .info (f "Waiting for all channel policies to match" )
119+ self .log .info ("Waiting for all channel policies to match" )
120120 score = 0
121121 for tank_index , me in enumerate (ln_nodes ):
122122 you = (tank_index + 1 ) % len (ln_nodes )
Original file line number Diff line number Diff line change 55import tempfile
66import uuid
77from pathlib import Path
8- from warnet .utils import channel_match , DEFAULT_TAG
9- from test_base import TestBase
108
9+ from test_base import TestBase
10+ from warnet .utils import DEFAULT_TAG , channel_match
1111
1212base = TestBase ()
1313base .start_server ()
7070 base .wait_for_all_scenarios ()
7171
7272 print ("Ensuring warnet LN channel policies match imported JSON description" )
73- with open (json_file_path , "r" ) as file :
74- actual = json .loads (base .warcli (f "lncli 0 describegraph" ))["edges" ]
73+ with open (json_file_path ) as file :
74+ actual = json .loads (base .warcli ("lncli 0 describegraph" ))["edges" ]
7575 expected = json .loads (file .read ())["edges" ]
7676 expected = sorted (expected , key = lambda chan : int (chan ['channel_id' ]))
7777 for chan_index , actual_chan in enumerate (actual ):
You can’t perform that action at this time.
0 commit comments