Use another Redis queue for the test app to prevent clashes with another Platypush service running on the same machine

This commit is contained in:
Fabio Manganiello 2021-03-06 17:17:55 +01:00
parent 8f256e4077
commit 6f85318868

View file

@ -17,6 +17,7 @@ def app():
Config.init(config_file) Config.init(config_file)
app = Daemon(config_file=config_file) app = Daemon(config_file=config_file)
app.bus.redis_queue = 'platypush-tests/bus'
Thread(target=lambda: app.run()).start() Thread(target=lambda: app.run()).start()
logging.info('Sleeping {} seconds while waiting for the daemon to start up'.format(app_start_timeout)) logging.info('Sleeping {} seconds while waiting for the daemon to start up'.format(app_start_timeout))
time.sleep(app_start_timeout) time.sleep(app_start_timeout)