only use long delay on windows

This commit is contained in:
meejah 2016-05-11 08:15:51 -06:00 committed by Brian Warner
parent fc5f820202
commit efef4ae632

View File

@ -1438,7 +1438,8 @@ class RealTest(SingleMagicFolderTestMixin, unittest.TestCase):
# Actually, there's no way to know when the actual
# notification will occur, and anyway we're not waiting for
# them in any case...so we'll just fudge it and hope 100ms is enough.
return task.deferLater(reactor, 5.0, lambda: None)
delay = 5.0 if sys.platform == "win32" else 0.1
return task.deferLater(reactor, delay, lambda: None)
class RealTestAliceBob(MagicFolderAliceBobTestMixin, unittest.TestCase):
@ -1454,7 +1455,8 @@ class RealTestAliceBob(MagicFolderAliceBobTestMixin, unittest.TestCase):
# Actually, there's no way to know when the actual
# notification will occur, and anyway we're not waiting for
# them in any case...so we'll just fudge it and hope 100ms is enough.
return task.deferLater(reactor, 5.0, lambda: None)
delay = 5.0 if sys.platform == "win32" else 0.1
return task.deferLater(reactor, delay lambda: None)
try: