[tor-commits] [stem/master] Drop test assertion about HS key length

atagar at torproject.org atagar at torproject.org
Sun Mar 4 00:19:03 UTC 2018


commit 3e1414f819441328d80fb972547a4fadd28f1479
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Mar 3 16:18:15 2018 -0800

    Drop test assertion about HS key length
    
    Jenkins tests failed. Seems the length of these can vary a bit after all.
---
 test/integ/control/controller.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/integ/control/controller.py b/test/integ/control/controller.py
index a3b8af38..87d6e970 100644
--- a/test/integ/control/controller.py
+++ b/test/integ/control/controller.py
@@ -581,7 +581,7 @@ class TestController(unittest.TestCase):
     with runner.get_tor_controller() as controller:
       response = controller.create_ephemeral_hidden_service(4567, key_content = 'RSA1024')
       self.assertEqual([response.service_id], controller.list_ephemeral_hidden_services())
-      self.assertEqual(812, len(response.private_key))
+      self.assertTrue(response.private_key is not None)
       self.assertEqual('RSA1024', response.private_key_type)
       self.assertEqual({}, response.client_auth)
 
@@ -626,7 +626,7 @@ class TestController(unittest.TestCase):
     with runner.get_tor_controller() as controller:
       response = controller.create_ephemeral_hidden_service(4567, key_content = 'ED25519-V3')
       self.assertEqual([response.service_id], controller.list_ephemeral_hidden_services())
-      self.assertEqual(88, len(response.private_key))
+      self.assertTrue(response.private_key is not None)
       self.assertEqual('ED25519-V3', response.private_key_type)
       self.assertEqual({}, response.client_auth)
 



More information about the tor-commits mailing list