Skip to content

Commit

Permalink
test: invalid -i2psam will raise an init error
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoerg committed Mar 27, 2022
1 parent 2f0f056 commit 45e67b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/feature_proxy.py
Expand Up @@ -33,6 +33,7 @@
- Test passing invalid -proxy
- Test passing invalid -onion
- Test passing invalid -i2psam
- Test passing -onlynet=onion without -proxy or -onion
- Test passing -onlynet=onion with -onion=0 and with -noonion
"""
Expand Down Expand Up @@ -321,6 +322,11 @@ def networks_dict(d):
msg = "Error: Invalid -onion address or hostname: 'xyz:abc'"
self.nodes[1].assert_start_raises_init_error(expected_msg=msg)

self.log.info("Test passing invalid -i2psam raises expected init error")
self.nodes[1].extra_args = ["-i2psam=def:xyz"]
msg = "Error: Invalid -i2psam address or hostname: 'def:xyz'"
self.nodes[1].assert_start_raises_init_error(expected_msg=msg)

msg = (
"Error: Outbound connections restricted to Tor (-onlynet=onion) but "
"the proxy for reaching the Tor network is not provided (no -proxy= "
Expand Down

0 comments on commit 45e67b2

Please sign in to comment.