Skip to content

Commit

Permalink
Merge pull request #63 from syseleven/dkuhn-fix-tests-for-tasks-in-ti…
Browse files Browse the repository at this point in the history
…meout

Don't test if the node is disabled in consul after a task timed out
  • Loading branch information
d-kuhn authored May 30, 2023
2 parents f0ebe06 + 90cdb70 commit 5d35f2b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down

0 comments on commit 5d35f2b

Please sign in to comment.