mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-10 15:03:04 +00:00
Refactor storage test helpers
Rewrite `renderSynchronously()` to use `renderDeferred()`
This commit is contained in:
parent
bdfa667a22
commit
6b61b75658
@ -2992,9 +2992,7 @@ def renderSynchronously(ss):
|
||||
|
||||
:param _StorageStatus ss: a StorageStatus instance.
|
||||
"""
|
||||
elem = StorageStatusElement(ss._storage, ss._nickname)
|
||||
deferred = flattenString(None, elem)
|
||||
return unittest.TestCase().successResultOf(deferred)
|
||||
return unittest.TestCase().successResultOf(renderDeferred(ss))
|
||||
|
||||
def renderDeferred(ss):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user