From 3f756e94297656b6bfc9d67f61182e56970c6cdf Mon Sep 17 00:00:00 2001 From: david-sarah Date: Thu, 15 Sep 2011 11:51:26 -0700 Subject: [PATCH] test_web.py: fix a bug in _count_leases that was causing us to check only the lease count of one share file, not of all share files as intended. --- src/allmydata/test/test_web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index 3a115ba8..370f09a4 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -4875,7 +4875,7 @@ class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMi for shnum, serverid, fn in shares: sf = get_share_file(fn) num_leases = len(list(sf.get_leases())) - lease_counts.append( (fn, num_leases) ) + lease_counts.append( (fn, num_leases) ) return lease_counts def _assert_leasecount(self, lease_counts, expected): -- 2.45.2