Increased daemon warm-up waiting time and timeout in tests
This commit is contained in:
parent
efe28b3207
commit
f5ef9957de
1 changed files with 5 additions and 3 deletions
|
@ -19,7 +19,8 @@ class TestHttp(unittest.TestCase):
|
||||||
""" Tests the full flow of a request/response on the HTTP backend.
|
""" Tests the full flow of a request/response on the HTTP backend.
|
||||||
Runs a remote command over HTTP via shell.exec plugin and gets the output """
|
Runs a remote command over HTTP via shell.exec plugin and gets the output """
|
||||||
|
|
||||||
timeout = 5
|
timeout = 10
|
||||||
|
sleep_secs = 10
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
|
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
|
||||||
|
@ -28,7 +29,8 @@ class TestHttp(unittest.TestCase):
|
||||||
|
|
||||||
def test_request_exec_flow(self):
|
def test_request_exec_flow(self):
|
||||||
self.start_daemon()
|
self.start_daemon()
|
||||||
time.sleep(1)
|
logging.info('Sleeping {} seconds while waiting for the daemon to start up'.format(self.sleep_secs))
|
||||||
|
time.sleep(self.sleep_secs)
|
||||||
self.send_request()
|
self.send_request()
|
||||||
|
|
||||||
def start_daemon(self):
|
def start_daemon(self):
|
||||||
|
@ -67,5 +69,5 @@ class TestHttp(unittest.TestCase):
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
||||||
# vim:sw=4:ts=4:et:
|
|
||||||
|
|
||||||
|
# vim:sw=4:ts=4:et:
|
||||||
|
|
Loading…
Reference in a new issue