From 9f4a4239133dbe952b88fe5f9999ee4b8764b56f Mon Sep 17 00:00:00 2001 From: Gwenael Lambrouin Date: Wed, 26 May 2021 18:07:31 +0200 Subject: behave_tests: increase nfvbench_test_api timeout In some cases, the 50 seconds timeout to wait for nfvbench HTTP server to be ready is too short. (Convoluted but real example: when the DNS servers are not properly configured and nfvbench tries to reach the OpenStack APIs while it does not need them because we just want to do a loopback test without loop VM) The new timeout is 120 seconds. Change-Id: I4932eff7c9a100370e7ceaaa2a467efbbceb5993 Signed-off-by: Gwenael Lambrouin --- behave_tests/features/steps/steps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/behave_tests/features/steps/steps.py b/behave_tests/features/steps/steps.py index b20a9cc..f4dda58 100644 --- a/behave_tests/features/steps/steps.py +++ b/behave_tests/features/steps/steps.py @@ -284,7 +284,7 @@ def push_result_database(context): """Utils methods.""" -@retry(AssertionError, tries=10, delay=5.0, logger=None) +@retry(AssertionError, tries=24, delay=5.0, logger=None) def test_nfvbench_api(context): try: r = requests.get("http://{ip}:{port}/status".format(ip=context.host_ip, port=context.port)) -- cgit 1.2.3-korg