mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-29 17:28:53 +00:00
test_storage: solaris doesn't appear to give the same block count as other platforms, so don't assert as much about 'diskbytes' recovered
This commit is contained in:
parent
24ebdb3954
commit
091cfd04ca
@ -1820,11 +1820,13 @@ class LeaseCrawler(unittest.TestCase, pollmixin.PollMixin, WebRenderingMixin):
|
|||||||
self.failUnlessEqual(rec["actual-sharebytes"], size)
|
self.failUnlessEqual(rec["actual-sharebytes"], size)
|
||||||
self.failUnlessEqual(rec["original-leasetimer-sharebytes"], size)
|
self.failUnlessEqual(rec["original-leasetimer-sharebytes"], size)
|
||||||
self.failUnlessEqual(rec["configured-leasetimer-sharebytes"], size)
|
self.failUnlessEqual(rec["configured-leasetimer-sharebytes"], size)
|
||||||
self.failUnless(rec["actual-diskbytes"] >= size,
|
# different platforms have different notions of "blocks used by
|
||||||
|
# this file", so merely assert that it's a number
|
||||||
|
self.failUnless(rec["actual-diskbytes"] >= 0,
|
||||||
rec["actual-diskbytes"])
|
rec["actual-diskbytes"])
|
||||||
self.failUnless(rec["original-leasetimer-diskbytes"] >= size,
|
self.failUnless(rec["original-leasetimer-diskbytes"] >= 0,
|
||||||
rec["original-leasetimer-diskbytes"])
|
rec["original-leasetimer-diskbytes"])
|
||||||
self.failUnless(rec["configured-leasetimer-diskbytes"] >= size,
|
self.failUnless(rec["configured-leasetimer-diskbytes"] >= 0,
|
||||||
rec["configured-leasetimer-diskbytes"])
|
rec["configured-leasetimer-diskbytes"])
|
||||||
d.addCallback(_after_first_cycle)
|
d.addCallback(_after_first_cycle)
|
||||||
d.addCallback(lambda ign: self.render1(webstatus))
|
d.addCallback(lambda ign: self.render1(webstatus))
|
||||||
|
Loading…
Reference in New Issue
Block a user