Fix failover tests
Signed-off-by: anikeev-yadro <a.anikeev@yadro.com>
This commit is contained in:
parent
5cab1ecf19
commit
8a48402f53
2 changed files with 5 additions and 5 deletions
|
@ -70,7 +70,7 @@ def test_lose_storage_node_host(
|
|||
assert all(old_node not in new_nodes for old_node in node_endpoints)
|
||||
|
||||
with allure.step("Check object data is not corrupted"):
|
||||
got_file_path = get_object(wallet, cid, oid, endpoint=new_nodes[0])
|
||||
got_file_path = get_object(wallet, cid, oid, endpoint=new_nodes[0], shell=client_shell)
|
||||
assert get_file_hash(source_file_path) == get_file_hash(got_file_path)
|
||||
|
||||
with allure.step(f"Return all hosts"):
|
||||
|
|
|
@ -26,7 +26,7 @@ def wait_object_replication_on_nodes(
|
|||
nodes = []
|
||||
for __attempt in range(attempts):
|
||||
nodes = get_nodes_with_object(wallet, cid, oid, shell=shell, skip_nodes=excluded_nodes)
|
||||
if len(nodes) == expected_copies:
|
||||
if len(nodes) >= expected_copies:
|
||||
return nodes
|
||||
sleep(sleep_interval)
|
||||
raise AssertionError(
|
||||
|
|
Loading…
Reference in a new issue