From c8227e80afb613caa9d98cd3c1d79e7c0df71c62 Mon Sep 17 00:00:00 2001 From: Ekaterina Chernitsyna Date: Thu, 2 Nov 2023 19:18:31 +0300 Subject: [PATCH] update-remaining time --- src/frostfs_testlib/load/k6.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frostfs_testlib/load/k6.py b/src/frostfs_testlib/load/k6.py index e7a2b39..e46221e 100644 --- a/src/frostfs_testlib/load/k6.py +++ b/src/frostfs_testlib/load/k6.py @@ -180,7 +180,9 @@ class K6: while timeout > 0: if not self._k6_process.running(): return - logger.info(f"K6 is running. Waiting {wait_interval} seconds...") + remaining_time_hours = f"{timeout//3600}h" if timeout//3600 != 0 else "" + remaining_time_minutes = f"{timeout//60%60}m" if timeout//60%60 != 0 else "" + logger.info(f"K6 is running. Remaining time {remaining_time_hours}{remaining_time_minutes}{timeout%60}s. Next check after {wait_interval} seconds...") sleep(wait_interval) timeout -= min(timeout, wait_interval) wait_interval = max(