Remove the flush_volume call in RealTest as well as in RealTestAliceBob.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2016-03-29 15:16:51 +01:00 committed by Brian Warner
parent b05b701532
commit 237f4719ee

View File

@ -1406,12 +1406,9 @@ class RealTest(SingleMagicFolderTestMixin, unittest.TestCase):
def notify(self, path, mask, magic=None, flush=True): def notify(self, path, mask, magic=None, flush=True):
# Writing to the filesystem causes the notification. # Writing to the filesystem causes the notification.
# However, flushing filesystem buffers may be necessary on Windows. # Actually, there's no way to know when the actual
if flush:
fileutil.flush_volume(path.path)
# actually, there's no way to know when the actual
# notification will occur, and anyway we're not waiting for # notification will occur, and anyway we're not waiting for
# them in any case...so we'll just fudge it and home 100ms is enough. # them in any case...so we'll just fudge it and hope 100ms is enough.
return task.deferLater(reactor, 0.1, lambda: None) return task.deferLater(reactor, 0.1, lambda: None)