mirror of https://github.com/zulip/zulip.git
Fix and re-enable test-queue-worker-reload.
It seems that we no longer get the message, 'zerver/lib/actions.py modified; restarting server', but the server reloads successfully nonetheless. Fixes: #1341.
This commit is contained in:
parent
99c430f707
commit
740b5634ac
|
@ -72,16 +72,8 @@ if __name__ == '__main__':
|
|||
|
||||
print("Attempting to modify a file")
|
||||
subprocess.call(['touch', 'zerver/lib/actions.py'])
|
||||
log_output = check_worker_launch(logfile)
|
||||
check_worker_launch(logfile)
|
||||
|
||||
run_dev.send_signal(signal.SIGINT)
|
||||
run_dev.wait()
|
||||
logfile.close()
|
||||
|
||||
if 'zerver/lib/actions.py modified; restarting server' in log_output:
|
||||
print('Worker threads succesfully autoreloaded')
|
||||
sys.exit(0)
|
||||
else:
|
||||
print("Error autoreloading queue workers. Dumping logs")
|
||||
print(log_output)
|
||||
sys.exit(1)
|
||||
|
|
|
@ -10,4 +10,4 @@ set -x
|
|||
./tools/test-management
|
||||
./tools/test-migrations
|
||||
./tools/test-run-dev
|
||||
#./tools/test-queue-worker-reload
|
||||
./tools/test-queue-worker-reload
|
||||
|
|
Loading…
Reference in New Issue