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.

This commit is contained in:
david-sarah 2011-09-15 11:51:26 -07:00
parent c4029d427f
commit 3f756e9429

View 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):