From f5ef9957de405278995002e3031c7ed6ec4d5842 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 15 Jul 2019 16:28:44 +0200 Subject: [PATCH] Increased daemon warm-up waiting time and timeout in tests --- tests/test_http.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_http.py b/tests/test_http.py index 07e28330..c80da48e 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -19,7 +19,8 @@ class TestHttp(unittest.TestCase): """ 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 """ - timeout = 5 + timeout = 10 + sleep_secs = 10 def setUp(self): logging.basicConfig(level=logging.INFO, stream=sys.stdout) @@ -28,7 +29,8 @@ class TestHttp(unittest.TestCase): def test_request_exec_flow(self): 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() def start_daemon(self): @@ -67,5 +69,5 @@ class TestHttp(unittest.TestCase): if __name__ == '__main__': unittest.main() -# vim:sw=4:ts=4:et: +# vim:sw=4:ts=4:et: