Correct the comment.

This commit is contained in:
Itamar Turner-Trauring 2021-11-23 10:01:03 -05:00
parent 4c11177387
commit c341a86abd

View File

@ -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)