Skip to content

Commit 77efd36

Browse files
committed
merge bitcoin#24687: Check an invalid -i2psam will raise an init error
1 parent fb1416f commit 77efd36

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/functional/feature_proxy.py

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
3434
- Test passing invalid -proxy
3535
- Test passing invalid -onion
36+
- Test passing invalid -i2psam
3637
- Test passing -onlynet=onion without -proxy or -onion
3738
- Test passing -onlynet=onion with -onion=0 and with -noonion
3839
"""
@@ -321,6 +322,11 @@ def networks_dict(d):
321322
msg = "Error: Invalid -onion address or hostname: 'xyz:abc'"
322323
self.nodes[1].assert_start_raises_init_error(expected_msg=msg)
323324

325+
self.log.info("Test passing invalid -i2psam raises expected init error")
326+
self.nodes[1].extra_args = ["-i2psam=def:xyz"]
327+
msg = "Error: Invalid -i2psam address or hostname: 'def:xyz'"
328+
self.nodes[1].assert_start_raises_init_error(expected_msg=msg)
329+
324330
msg = (
325331
"Error: Outbound connections restricted to Tor (-onlynet=onion) but "
326332
"the proxy for reaching the Tor network is not provided (no -proxy= "

0 commit comments

Comments
 (0)