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 3636- Test passing invalid -i2psam
3737- Test passing -onlynet=onion without -proxy or -onion
3838- Test passing -onlynet=onion with -onion=0 and with -noonion
39+ - Test passing unknown -onlynet
3940"""
4041
4142import socket
@@ -341,6 +342,11 @@ def networks_dict(d):
341342 self .nodes [1 ].extra_args = ["-onlynet=onion" , arg ]
342343 self .nodes [1 ].assert_start_raises_init_error (expected_msg = msg )
343344
345+ self .log .info ("Test passing unknown network to -onlynet raises expected init error" )
346+ self .nodes [1 ].extra_args = ["-onlynet=abc" ]
347+ msg = "Error: Unknown network specified in -onlynet: 'abc'"
348+ self .nodes [1 ].assert_start_raises_init_error (expected_msg = msg )
349+
344350
345351if __name__ == '__main__' :
346352 ProxyTest ().main ()
You can’t perform that action at this time.
0 commit comments