[FIX] some tests need the http daemon to be available

bzr revid: chs@openerp.com-20140417170620-48tw5nj3jt43zxgk
This commit is contained in:
Christophe Simonis 2014-04-17 19:06:20 +02:00
parent 2024cc28b2
commit efbf7632b8
1 changed files with 5 additions and 1 deletions

View File

@ -292,10 +292,14 @@ class ThreadedServer(CommonServer):
import win32api
win32api.SetConsoleCtrlHandler(lambda sig: self.signal_handler(sig, None), 1)
test_mode = config['test_enable'] or config['test_file']
if not stop or test_mode:
# some tests need the http deamon to be available...
self.http_spawn()
if not stop:
# only relevant if we are not in "--stop-after-init" mode
self.cron_spawn()
self.http_spawn()
def stop(self):
""" Shutdown the WSGI server. Wait for non deamon threads.