From: Brian Warner Date: Fri, 5 Dec 2008 00:27:04 +0000 (-0700) Subject: test_system.py: assert less about the stats we get, since shares (and thus allocate... X-Git-Url: https://git.rkrishnan.org/vdrive/%22file:/somewhere?a=commitdiff_plain;h=e942ab141b5bbe8d1eb35911fa88ed17dc0f45b7;p=tahoe-lafs%2Ftahoe-lafs.git test_system.py: assert less about the stats we get, since shares (and thus allocate() calls) are distributed randomly --- diff --git a/src/allmydata/test/test_system.py b/src/allmydata/test/test_system.py index 02fd446a..be672be4 100644 --- a/src/allmydata/test/test_system.py +++ b/src/allmydata/test/test_system.py @@ -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)