File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -263,12 +263,13 @@ def networks_dict(d):
263
263
264
264
n2 = networks_dict (self .nodes [2 ].getnetworkinfo ())
265
265
assert_equal (NETWORKS , n2 .keys ())
266
+ proxy = f'{ self .conf2 .addr [0 ]} :{ self .conf2 .addr [1 ]} '
266
267
for net in NETWORKS :
267
268
if net == NET_I2P :
268
269
expected_proxy = ''
269
270
expected_randomize = False
270
271
else :
271
- expected_proxy = f' { self . conf2 . addr [ 0 ] } : { self . conf2 . addr [ 1 ] } '
272
+ expected_proxy = proxy
272
273
expected_randomize = True
273
274
assert_equal (n2 [net ]['proxy' ], expected_proxy )
274
275
assert_equal (n2 [net ]['proxy_randomize_credentials' ], expected_randomize )
@@ -279,11 +280,9 @@ def networks_dict(d):
279
280
if self .have_ipv6 :
280
281
n3 = networks_dict (self .nodes [3 ].getnetworkinfo ())
281
282
assert_equal (NETWORKS , n3 .keys ())
283
+ proxy = f'[{ self .conf3 .addr [0 ]} ]:{ self .conf3 .addr [1 ]} '
282
284
for net in NETWORKS :
283
- if net == NET_I2P or net == NET_ONION :
284
- expected_proxy = ''
285
- else :
286
- expected_proxy = f'[{ self .conf3 .addr [0 ]} ]:{ self .conf3 .addr [1 ]} '
285
+ expected_proxy = '' if net == NET_I2P or net == NET_ONION else proxy
287
286
assert_equal (n3 [net ]['proxy' ], expected_proxy )
288
287
assert_equal (n3 [net ]['proxy_randomize_credentials' ], False )
289
288
assert_equal (n3 ['onion' ]['reachable' ], False )
You can’t perform that action at this time.
0 commit comments