]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_web.py: fix a bug in _count_leases that was causing us to check only the lease...
authordavid-sarah <david-sarah@jacaranda.org>
Thu, 15 Sep 2011 18:51:26 +0000 (11:51 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Thu, 15 Sep 2011 18:51:26 +0000 (11:51 -0700)
src/allmydata/test/test_web.py

index 3a115ba8ccc993b9b7f596deb4c9dbf0cb0d647a..370f09a4b476d014308a61512f16307816e65e30 100644 (file)
@@ -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):