mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-25 07:31:07 +00:00
Correct the comment.
This commit is contained in:
parent
4c11177387
commit
c341a86abd
@ -316,9 +316,10 @@ class Bucket(unittest.TestCase):
|
|||||||
incoming, final = self.make_workdir("test_bucket_writes_delay_timeout")
|
incoming, final = self.make_workdir("test_bucket_writes_delay_timeout")
|
||||||
clock = Clock()
|
clock = Clock()
|
||||||
bw = BucketWriter(self, incoming, final, 200, self.make_lease(), clock)
|
bw = BucketWriter(self, incoming, final, 200, self.make_lease(), clock)
|
||||||
# 20 minutes pass, getting close to the timeout...
|
# 29 minutes pass, getting close to the timeout...
|
||||||
clock.advance(29 * 60)
|
clock.advance(29 * 60)
|
||||||
# .. but we receive a write! So that should delay the timeout.
|
# .. but we receive a write! So that should delay the timeout again to
|
||||||
|
# another 30 minutes.
|
||||||
bw.remote_write(0, b"hello")
|
bw.remote_write(0, b"hello")
|
||||||
self._assert_timeout_only_after_30_minutes(clock, bw)
|
self._assert_timeout_only_after_30_minutes(clock, bw)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user