mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
only use long delay on windows
This commit is contained in:
parent
fc5f820202
commit
efef4ae632
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user