]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_system: RSA keys vary in size, expand valid ranges in test
authorBrian Warner <warner@lothar.com>
Thu, 8 Nov 2007 10:01:13 +0000 (03:01 -0700)
committerBrian Warner <warner@lothar.com>
Thu, 8 Nov 2007 10:01:13 +0000 (03:01 -0700)
src/allmydata/test/test_system.py

index b784bc689db291913b115f14c38a19111c29f7ff..5f35da8ac93bd591a7128bb2209f3ecc7b7b8d9d 100644 (file)
@@ -302,11 +302,11 @@ class SystemTest(testutil.SignalMixin, unittest.TestCase):
                 m = re.search(r'^ container_size: (\d+)$', output, re.M)
                 self.failUnless(m)
                 container_size = int(m.group(1))
-                self.failUnless(2046 <= container_size <= 2049, container_size)
+                self.failUnless(2045 <= container_size <= 2049, container_size)
                 m = re.search(r'^ data_length: (\d+)$', output, re.M)
                 self.failUnless(m)
                 data_length = int(m.group(1))
-                self.failUnless(2046 <= data_length <= 2049, data_length)
+                self.failUnless(2045 <= data_length <= 2049, data_length)
                 self.failUnless("  secrets are for nodeid: %s\n" % peerid
                                 in output)
                 self.failUnless(" SDMF contents:\n" in output)