[#374] Fix for test_should_be_possible_to_lock_multiple_objects_at_once
All checks were successful
DCO action / DCO (pull_request) Successful in 22s
All checks were successful
DCO action / DCO (pull_request) Successful in 22s
Signed-off-by: Kirill Sosnovskikh <k.sosnovskikh@yadro.com>
This commit is contained in:
parent
9ad620121e
commit
a0616311b0
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ from time import sleep
|
|||
import pytest
|
||||
|
||||
from frostfs_testlib import reporter
|
||||
from frostfs_testlib.resources.error_patterns import OBJECT_ALREADY_REMOVED
|
||||
from frostfs_testlib.resources.error_patterns import OBJECT_ALREADY_REMOVED, OBJECT_NOT_FOUND
|
||||
from frostfs_testlib.shell import Shell
|
||||
from frostfs_testlib.steps.cli.object import delete_object, get_object
|
||||
from frostfs_testlib.steps.epoch import tick_epoch
|
||||
|
@ -50,7 +50,7 @@ def delete_objects(storage_objects: list[StorageObjectInfo], shell: Shell, clust
|
|||
|
||||
with reporter.step("Get objects and check errors"):
|
||||
for storage_object in storage_objects:
|
||||
with pytest.raises(Exception, match=OBJECT_ALREADY_REMOVED):
|
||||
with pytest.raises(Exception, match=f"{OBJECT_ALREADY_REMOVED}|{OBJECT_NOT_FOUND}"):
|
||||
get_object(
|
||||
storage_object.wallet,
|
||||
storage_object.cid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue