forked from TrueCloudLab/frostfs-testcases
Fix epoch duration in http test
Signed-off-by: Vladislav Karakozov <v.karakozov@yadro.com>
This commit is contained in:
parent
690323e85d
commit
a942464de6
1 changed files with 3 additions and 1 deletions
|
@ -59,7 +59,9 @@ class Test_http_system_header(ClusterTestBase):
|
||||||
endpoint=self.cluster.default_rpc_endpoint,
|
endpoint=self.cluster.default_rpc_endpoint,
|
||||||
shell=self.shell,
|
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")
|
@allure.title("Return N-epoch count in minutes")
|
||||||
def epoch_count_into_mins(self, epoch_duration: int, epoch: int) -> str:
|
def epoch_count_into_mins(self, epoch_duration: int, epoch: int) -> str:
|
||||||
|
|
Loading…
Reference in a new issue