From: david-sarah Date: Thu, 15 Sep 2011 18:51:26 +0000 (-0700) Subject: test_web.py: fix a bug in _count_leases that was causing us to check only the lease... X-Git-Tag: allmydata-tahoe-1.9.0a2~26 X-Git-Url: https://git.rkrishnan.org/?p=tahoe-lafs%2Ftahoe-lafs.git;a=commitdiff_plain;h=3f756e94297656b6bfc9d67f61182e56970c6cdf 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. --- 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):