mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 23:26:43 +00:00
test_storage.py: more windows-vs-readonly-storage fixes
This commit is contained in:
parent
2a640af485
commit
6958b7fa90
@ -575,7 +575,11 @@ class Server(unittest.TestCase):
|
||||
stats = ss.get_stats()
|
||||
self.failUnlessEqual(stats["storage_server.accepting_immutable_shares"],
|
||||
False)
|
||||
self.failUnlessEqual(stats["storage_server.disk_avail"], 0)
|
||||
if "storage_server.disk_avail" in stats:
|
||||
# windows does not have os.statvfs, so it doesn't give us disk
|
||||
# stats. But if there are stats, readonly_storage means
|
||||
# disk_avail=0
|
||||
self.failUnlessEqual(stats["storage_server.disk_avail"], 0)
|
||||
|
||||
def test_discard(self):
|
||||
# discard is really only used for other tests, but we test it anyways
|
||||
|
Loading…
Reference in New Issue
Block a user