From a942464de686ed9ca689180486a979365088afd1 Mon Sep 17 00:00:00 2001 From: Vladislav Karakozov Date: Fri, 30 Dec 2022 11:37:26 +0300 Subject: [PATCH] Fix epoch duration in http test Signed-off-by: Vladislav Karakozov --- .../testsuites/services/http_gate/test_http_system_header.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pytest_tests/testsuites/services/http_gate/test_http_system_header.py b/pytest_tests/testsuites/services/http_gate/test_http_system_header.py index a75f3ec4..13ac78a5 100644 --- a/pytest_tests/testsuites/services/http_gate/test_http_system_header.py +++ b/pytest_tests/testsuites/services/http_gate/test_http_system_header.py @@ -59,7 +59,9 @@ class Test_http_system_header(ClusterTestBase): endpoint=self.cluster.default_rpc_endpoint, shell=self.shell, ) - return net_info["epoch_duration"] + epoch_duration_in_blocks = net_info["epoch_duration"] + time_per_block = net_info["time_per_block"] + return int(epoch_duration_in_blocks * time_per_block) @allure.title("Return N-epoch count in minutes") def epoch_count_into_mins(self, epoch_duration: int, epoch: int) -> str: