mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-09 03:44:23 +00:00
Merge PR351 from str4d:2824-update-error-message
This commit is contained in:
commit
b537f470c9
@ -312,7 +312,7 @@ class Node(service.MultiService):
|
||||
|
||||
if not self._reveal_ip:
|
||||
if self._default_connection_handlers.get("tcp") == "tcp":
|
||||
raise PrivacyError("tcp = tcp, must be set to 'tor'")
|
||||
raise PrivacyError("tcp = tcp, must be set to 'tor' or 'disabled'")
|
||||
|
||||
def set_tub_options(self):
|
||||
self.tub_options = {
|
||||
|
@ -275,7 +275,8 @@ class Privacy(unittest.TestCase):
|
||||
n = FakeNode(BASECONFIG+"[node]\nreveal-IP-address = false\n")
|
||||
n.check_privacy()
|
||||
e = self.assertRaises(PrivacyError, n.init_connections)
|
||||
self.assertEqual(str(e), "tcp = tcp, must be set to 'tor'")
|
||||
self.assertEqual(str(e),
|
||||
"tcp = tcp, must be set to 'tor' or 'disabled'")
|
||||
|
||||
def test_connections_tcp_disabled(self):
|
||||
n = FakeNode(BASECONFIG+
|
||||
|
Loading…
x
Reference in New Issue
Block a user