Skip to content

Commit

Permalink
session_token: Wait for epochs align
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Kulachenko <[email protected]>
  • Loading branch information
vvarg229 committed Sep 4, 2023
1 parent 4730b18 commit 522ded6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def test_session_token_expiration_flags(
session=session_token,
)

self.tick_epochs(2)
self.tick_epochs_and_wait(2)

with allure.step("Verify object operations with created session token are not allowed"):
file_path = generate_file(simple_object_size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def test_static_session_expiration_at_next(
session=token_expire_at_next_epoch,
)

self.tick_epochs(2)
self.tick_epochs_and_wait(2)

with pytest.raises(Exception, match=EXPIRED_SESSION_TOKEN):
head_object(
Expand Down Expand Up @@ -573,7 +573,7 @@ def test_static_session_start_at_next(
session=token_start_at_next_epoch,
)

self.tick_epoch()
self.tick_epochs_and_wait(1)
head_object(
user_wallet.path,
container,
Expand All @@ -583,7 +583,7 @@ def test_static_session_start_at_next(
session=token_start_at_next_epoch,
)

self.tick_epochs(2)
self.tick_epochs_and_wait(2)
with pytest.raises(Exception, match=EXPIRED_SESSION_TOKEN):
head_object(
user_wallet.path,
Expand Down

0 comments on commit 522ded6

Please sign in to comment.