test_dirnode: the size of the directories varies, tolerate it as low as 500 bytes

This commit is contained in:
Brian Warner 2008-05-08 13:42:42 -07:00
parent e6ae7a2c60
commit a1ea3d9b37

View File

@ -226,9 +226,9 @@ class Dirnode(unittest.TestCase, testutil.ShouldFailMixin, testutil.StallMixin):
self.failUnlessEqual(stats[k], v,
"stats[%s] was %s, not %s" %
(k, stats[k], v))
self.failUnless(stats["size-directories"] > 600,
self.failUnless(stats["size-directories"] > 500,
stats["size-directories"])
self.failUnless(stats["largest-directory"] > 600,
self.failUnless(stats["largest-directory"] > 500,
stats["largest-directory"])
d.addCallback(_check_deepstats)