From fb8fc69bba7710a5cd39790fc9aa4170fde853b9 Mon Sep 17 00:00:00 2001 From: maaktweluit <10008353+maaktweluit@users.noreply.github.com> Date: Mon, 19 Aug 2019 15:04:01 +0200 Subject: [PATCH 1/2] lowered the task.tasks timeout from 60 to 2 minutes --- scripts/node_integration_tests/playbooks/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/node_integration_tests/playbooks/base.py b/scripts/node_integration_tests/playbooks/base.py index d4ac75de70..8e9124b526 100644 --- a/scripts/node_integration_tests/playbooks/base.py +++ b/scripts/node_integration_tests/playbooks/base.py @@ -307,7 +307,7 @@ def on_success(result): new_tasks = tasks - self.known_tasks if len(new_tasks) != 1: print("Cannot find the new task ({})".format(new_tasks)) - time.sleep(30) + time.sleep(1) else: self.task_id = list(new_tasks)[0] print("Task id: {}".format(self.task_id)) From aa2d88644cf4ce5fc6f5b8a56ac808d02b6d3529 Mon Sep 17 00:00:00 2001 From: maaktweluit <10008353+maaktweluit@users.noreply.github.com> Date: Fri, 23 Aug 2019 11:22:05 +0200 Subject: [PATCH 2/2] Review comment, update sleep to 3 seconds for less spam --- scripts/node_integration_tests/playbooks/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/node_integration_tests/playbooks/base.py b/scripts/node_integration_tests/playbooks/base.py index 8e9124b526..ab393fe64f 100644 --- a/scripts/node_integration_tests/playbooks/base.py +++ b/scripts/node_integration_tests/playbooks/base.py @@ -307,7 +307,7 @@ def on_success(result): new_tasks = tasks - self.known_tasks if len(new_tasks) != 1: print("Cannot find the new task ({})".format(new_tasks)) - time.sleep(1) + time.sleep(3) else: self.task_id = list(new_tasks)[0] print("Task id: {}".format(self.task_id))