From 90cdb70e7ce34dfe867bf8eda1834ddf01c9d8a4 Mon Sep 17 00:00:00 2001 From: Dennis Kuhn Date: Thu, 25 May 2023 12:56:50 +0200 Subject: [PATCH] Don't test if the node is disabled in consul after a task timed out Fix the tests in preperation for https://github.com/syseleven/rebootmgr/pull/62 --- tests/test_tasks.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/test_tasks.py b/tests/test_tasks.py index fe84b51..174167a 100644 --- a/tests/test_tasks.py +++ b/tests/test_tasks.py @@ -13,11 +13,6 @@ def test_reboot_task_timeout(run_cli, consul_cluster, forward_consul_port, defau assert "Could not finish task /etc/rebootmgr/pre_boot_tasks/00_some_task.sh in 120 minutes" in result.output assert result.exit_code == 100 - _, data = consul_cluster[0].kv.get("service/rebootmgr/nodes/{}/config".format(socket.gethostname())) - assert json.loads(data["Value"].decode()) == { - "enabled": False, - "message": "Could not finish task /etc/rebootmgr/pre_boot_tasks/00_some_task.sh in 120 minutes" - } # TODO(oseibert): check that shutdown is NOT called.