From 28111b2eee8264eb0a2c144a0f6ca5b2605ebe44 Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Tue, 3 Dec 2024 16:36:15 +0100 Subject: [PATCH] assertion fix for rex time expressions test (#17059) (cherry picked from commit c402d164b4433fe9af29b73dcaf468fc57e1c37f) --- tests/foreman/cli/test_remoteexecution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/foreman/cli/test_remoteexecution.py b/tests/foreman/cli/test_remoteexecution.py index 149d43b1cc1..c6ca0639197 100644 --- a/tests/foreman/cli/test_remoteexecution.py +++ b/tests/foreman/cli/test_remoteexecution.py @@ -463,7 +463,7 @@ def test_positive_time_expressions(self, rex_contenthost, target_sat): """ client = rex_contenthost today = datetime.today() - hour = datetime.utcnow().hour + hour = datetime.now().hour last_day_of_month = monthrange(today.year, today.month)[1] # cronline uses https://github.com/floraison/fugit fugit_expressions = [