mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
test: passing invalid -onion raises expected init error
This commit is contained in:
parent
d5edb08708
commit
8332e6e4cf
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,7 @@ addnode connect to a CJDNS address
|
|||
- Test getnetworkinfo for each node
|
||||
|
||||
- Test passing invalid -proxy
|
||||
- Test passing invalid -onion
|
||||
"""
|
||||
|
||||
import socket
|
||||
|
@ -313,6 +314,11 @@ class ProxyTest(BitcoinTestFramework):
|
|||
msg = "Error: Invalid -proxy address or hostname: 'abc:def'"
|
||||
self.nodes[1].assert_start_raises_init_error(expected_msg=msg)
|
||||
|
||||
self.log.info("Test passing invalid -onion raises expected init error")
|
||||
self.nodes[1].extra_args = ["-onion=xyz:abc"]
|
||||
msg = "Error: Invalid -onion address or hostname: 'xyz:abc'"
|
||||
self.nodes[1].assert_start_raises_init_error(expected_msg=msg)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
ProxyTest().main()
|
||||
|
|
Loading…
Add table
Reference in a new issue