Skip to content

Commit

Permalink
Address test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Jan 11, 2023
1 parent 93dd8b4 commit 20edbfd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/pytests/unit/utils/test_minions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ def test_connected_ids_remote_minions():
# These validate_tgt tests make the assumption that CkMinions.check_minions is
# correct. In other words, these tests are only worthwhile if check_minions is
# also correct.
def test_validate_tgt_should_return_false_when_no_valid_minions_have_been_found():
def test_validate_tgt_returns_true_when_no_valid_minions_have_been_found():
"""
CKMinions is only able to check against minions the master knows about. If
no minion keys have been accepted it will return True.
"""
ckminions = salt.utils.minions.CkMinions(opts={})
with patch(
"salt.utils.minions.CkMinions.check_minions", autospec=True, return_value={}
Expand Down

0 comments on commit 20edbfd

Please sign in to comment.