#478 Update lock tests

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2022-12-23 21:40:30 +03:00 committed by abereziny
parent 1abf544433
commit 4099413577
2 changed files with 12 additions and 7 deletions

View file

@ -1,3 +1,4 @@
import allure
import epoch
import pytest
from cluster import Cluster
@ -15,6 +16,11 @@ class ClusterTestBase:
ClusterTestBase.cluster = cluster
yield
@allure.title("Tick {epochs_to_tick} epochs")
def tick_epochs(self, epochs_to_tick: int):
for _ in range(epochs_to_tick):
self.tick_epoch()
def tick_epoch(self):
epoch.tick_epoch(self.shell, self.cluster)