Commit e67ed92 1 parent 77efd36 commit e67ed92 Copy full SHA for e67ed92
File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 36
36
- Test passing invalid -i2psam
37
37
- Test passing -onlynet=onion without -proxy or -onion
38
38
- Test passing -onlynet=onion with -onion=0 and with -noonion
39
+ - Test passing unknown -onlynet
39
40
"""
40
41
41
42
import socket
@@ -341,6 +342,11 @@ def networks_dict(d):
341
342
self .nodes [1 ].extra_args = ["-onlynet=onion" , arg ]
342
343
self .nodes [1 ].assert_start_raises_init_error (expected_msg = msg )
343
344
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
+
344
350
345
351
if __name__ == '__main__' :
346
352
ProxyTest ().main ()
You can’t perform that action at this time.
0 commit comments