From e942ab141b5bbe8d1eb35911fa88ed17dc0f45b7 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 4 Dec 2008 17:27:04 -0700 Subject: [PATCH] test_system.py: assert less about the stats we get, since shares (and thus allocate() calls) are distributed randomly --- src/allmydata/test/test_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2