File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 34
34
- Test passing invalid -proxy
35
35
- Test passing invalid -onion
36
36
- Test passing -onlynet=onion without -proxy or -onion
37
+ - Test passing -onlynet=onion with -onion=0 and with -noonion
37
38
"""
38
39
39
40
import socket
@@ -329,6 +330,11 @@ def networks_dict(d):
329
330
self .nodes [1 ].extra_args = ["-onlynet=onion" ]
330
331
self .nodes [1 ].assert_start_raises_init_error (expected_msg = msg )
331
332
333
+ self .log .info ("Test passing -onlynet=onion with -onion=0/-noonion raises expected init error" )
334
+ for arg in ["-onion=0" , "-noonion" ]:
335
+ self .nodes [1 ].extra_args = ["-onlynet=onion" , arg ]
336
+ self .nodes [1 ].assert_start_raises_init_error (expected_msg = msg )
337
+
332
338
333
339
if __name__ == '__main__' :
334
340
ProxyTest ().main ()
You can’t perform that action at this time.
0 commit comments