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 3434- Test passing invalid -proxy
3535- Test passing invalid -onion
3636- Test passing -onlynet=onion without -proxy or -onion
37+ - Test passing -onlynet=onion with -onion=0 and with -noonion
3738"""
3839
3940import socket
@@ -329,6 +330,11 @@ def networks_dict(d):
329330 self .nodes [1 ].extra_args = ["-onlynet=onion" ]
330331 self .nodes [1 ].assert_start_raises_init_error (expected_msg = msg )
331332
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+
332338
333339if __name__ == '__main__' :
334340 ProxyTest ().main ()
You can’t perform that action at this time.
0 commit comments