Skip to content

Commit d5edb08

Browse files
committed
test: passing invalid -proxy raises expected init error
1 parent bd57dcb commit d5edb08

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/functional/feature_proxy.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
addnode connect to a CJDNS address
3131
3232
- Test getnetworkinfo for each node
33+
34+
- Test passing invalid -proxy
3335
"""
3436

3537
import socket
@@ -304,6 +306,13 @@ def networks_dict(d):
304306
assert_equal(n4['i2p']['reachable'], False)
305307
assert_equal(n4['cjdns']['reachable'], True)
306308

309+
self.stop_node(1)
310+
311+
self.log.info("Test passing invalid -proxy raises expected init error")
312+
self.nodes[1].extra_args = ["-proxy=abc:def"]
313+
msg = "Error: Invalid -proxy address or hostname: 'abc:def'"
314+
self.nodes[1].assert_start_raises_init_error(expected_msg=msg)
315+
307316

308317
if __name__ == '__main__':
309318
ProxyTest().main()

0 commit comments

Comments
 (0)