mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
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:
parent
c4029d427f
commit
3f756e9429
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user