Skip to content

Commit

Permalink
Don't test if the node is disabled in consul after a task timed out
Browse files Browse the repository at this point in the history
Fix the tests in preperation for #62
  • Loading branch information
d-kuhn committed May 25, 2023
1 parent 9e91cb5 commit 90cdb70
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 90cdb70

Please sign in to comment.