def syncback_service(): from inbox.transactions.actions import SyncbackService s = SyncbackService(poll_interval=0, retry_interval=0) s.start() yield s s.stop() s.join()
def syncback_service(): from inbox.transactions.actions import SyncbackService s = SyncbackService(poll_interval=0, retry_interval=0) s.start() yield s s.stop() s.join()
def syncback_service(): # aggressive=False used to avoid AttributeError in other tests, see # https://groups.google.com/forum/#!topic/gevent/IzWhGQHq7n0 # TODO(emfree): It's totally whack that monkey-patching here would affect # other tests. Can we make this not happen? monkey.patch_all(aggressive=False) from inbox.transactions.actions import SyncbackService s = SyncbackService(poll_interval=0, retry_interval=0) s.start() yield s s.stop()
def syncback_service(): # aggressive=False used to avoid AttributeError in other tests, see # https://groups.google.com/forum/#!topic/gevent/IzWhGQHq7n0 # TODO(emfree): It's totally whack that monkey-patching here would affect # other tests. Can we make this not happen? monkey.patch_all(aggressive=False) from inbox.transactions.actions import SyncbackService s = SyncbackService(poll_interval=0.1) s.start() yield s s.stop()