[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Revert "Validate signed descriptors when testing"



commit e6c5b92ea32e82ae0c4d4e1a5504f170c35ff12f
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Fri Jun 30 10:12:19 2017 -0700

    Revert "Validate signed descriptors when testing"
    
    Ok, I'm dumb. This is the default.
    
    This reverts commit 0f35be160fe11e082ee9482a774136aa72fd3477.
---
 test/unit/descriptor/extrainfo_descriptor.py | 2 +-
 test/unit/descriptor/server_descriptor.py    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/unit/descriptor/extrainfo_descriptor.py b/test/unit/descriptor/extrainfo_descriptor.py
index 822f6d1..1f91e72 100644
--- a/test/unit/descriptor/extrainfo_descriptor.py
+++ b/test/unit/descriptor/extrainfo_descriptor.py
@@ -136,7 +136,7 @@ k0d2aofcVbHr4fPQOSST0LXDrhFl5Fqo5um296zpJGvRUeO6S44U/EfJAGShtqWw
 
   @test.require.cryptography
   def test_descriptor_signing(self):
-    RelayExtraInfoDescriptor.create(sign = True, validate = True)
+    RelayExtraInfoDescriptor.create(sign = True)
     self.assertRaisesRegexp(NotImplementedError, 'Signing of BridgeExtraInfoDescriptor not implemented', BridgeExtraInfoDescriptor.create, sign = True)
 
   def test_multiple_metrics_bridge_descriptors(self):
diff --git a/test/unit/descriptor/server_descriptor.py b/test/unit/descriptor/server_descriptor.py
index b015474..8578726 100644
--- a/test/unit/descriptor/server_descriptor.py
+++ b/test/unit/descriptor/server_descriptor.py
@@ -257,7 +257,7 @@ Qlx9HNCqCY877ztFRC624ja2ql6A2hBcuoYMbkHjcQ4=
 
   @test.require.cryptography
   def test_descriptor_signing(self):
-    RelayDescriptor.create(sign = True, validate = True)
+    RelayDescriptor.create(sign = True)
     self.assertRaisesRegexp(NotImplementedError, 'Signing of BridgeDescriptor not implemented', BridgeDescriptor.create, sign = True)
 
   @patch('time.time', Mock(return_value = time.mktime(datetime.date(2010, 1, 1).timetuple())))



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits