Skip to content

Commit

Permalink
fix(anta.tests): Better error message for NTP test (#401)
Browse files Browse the repository at this point in the history
fix(anta.tests): Better error message for NTP test
  • Loading branch information
gmuloc committed Sep 18, 2023
1 parent 52b88f3 commit 251dd31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anta/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,4 @@ def test(self) -> None:
self.result.is_success()
else:
data = command_output.split("\n")[0]
self.result.is_failure(f"NTP server is not synchronized: '{data}'")
self.result.is_failure(f"The device is not synchronized with the configured NTP server(s): '{data}'")
2 changes: 1 addition & 1 deletion tests/units/anta_tests/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,6 @@
"""
],
"inputs": None,
"expected": {"result": "failure", "messages": ["NTP server is not synchronized: 'unsynchronised'"]},
"expected": {"result": "failure", "messages": ["The device is not synchronized with the configured NTP server(s): 'unsynchronised'"]},
},
]

0 comments on commit 251dd31

Please sign in to comment.