mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
The Tahoe-LAFS decentralized secure filesystem.
81ad52d6eb
To test the changes for #577, we need a deterministic way to simulate the passage of long periods of time. twisted.internet.task.Clock seems, from my Googling, to be the way to go for this functionality. I changed a few things so that OphandleTable would use twisted.internet.task.Clock when testing: * WebishServer.__init___ now takes an optional 'clock' parameter, * which it passes to the root.Root instance it creates. * root.Root.__init__ now takes an optional 'clock' parameter, which it passes to the OphandleTable.__init__ method. * OphandleTable.__init__ now takes an optional 'clock' parameter. If it is provided, and it isn't None, its callLater method will be used to schedule ophandle expirations (as opposed to using reactor.callLater, which is what OphandleTable does normally). * The WebMixin object in test_web.py now sets a self.clock parameter, which is a twisted.internet.task.Clock that it feeds to the WebishServer it creates. Tests using the WebMixin can control the passage of time in OphandleTable by accessing self.clock. |
||
---|---|---|
bin | ||
contrib | ||
docs | ||
mac | ||
misc | ||
src/allmydata | ||
twisted/plugins | ||
windows | ||
_auto_deps.py | ||
.darcs-boringfile | ||
COPYING.GPL | ||
COPYING.TGPPL.html | ||
CREDITS | ||
ez_setup.py | ||
Makefile | ||
NEWS | ||
README | ||
relnotes-short.txt | ||
relnotes.txt | ||
setup.cfg | ||
setup.py | ||
Tahoe.home |
Welcome to the Tahoe-LAFS project [1], a secure, decentralized, fault-tolerant filesystem. All of the source code is available under a Free Software, Open Source licence (or two). Please see docs/about.html for an introduction, docs/install.html for install instructions, docs/running.html for usage instructions. Finally, see docs/known_issues.txt for things that you need to know about if you are relying on Tahoe to store your valuable data. [1] http://allmydata.org