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:
Umair Khan 2016-08-09 17:12:27 +05:00 committed by Tim Abbott
parent 99c430f707
commit 740b5634ac
2 changed files with 2 additions and 10 deletions

View File

@ -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)

View File

@ -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