test_system.py: assert less about the stats we get, since shares (and thus allocate() calls) are distributed randomly

This commit is contained in:
Brian Warner 2008-12-04 17:27:04 -07:00
parent 7c4edac582
commit e942ab141b

View File

@ -420,7 +420,7 @@ class SystemTest(SystemTestMixin, unittest.TestCase):
s = stats["stats"]
self.failUnlessEqual(s["storage_server.accepting_immutable_shares"], 1)
c = stats["counters"]
self.failUnlessEqual(c["storage_server.allocate"], 2)
self.failUnless("storage_server.allocate" in c)
d.addCallback(_got_stats)
return d
d.addCallback(_grab_stats)