Fix test_static_session_search: lists should be compared sorted #25

Merged
abereziny merged 1 commit from dstepanov-yadro/frostfs-testcases:fix/compare_sorted_object_id_lists into master 2023-03-24 12:48:37 +00:00

View file

@ -226,8 +226,6 @@ class TestObjectStaticSession(ClusterTestBase):
) )
@allure.title("Validate static session with search operation") @allure.title("Validate static session with search operation")
@pytest.mark.xfail
# (see https://github.com/nspcc-dev/neofs-node/issues/2030)
def test_static_session_search( def test_static_session_search(
self, self,
user_wallet: WalletFile, user_wallet: WalletFile,
@ -250,7 +248,7 @@ class TestObjectStaticSession(ClusterTestBase):
session=static_sessions[ObjectVerb.SEARCH], session=static_sessions[ObjectVerb.SEARCH],
root=True, root=True,
) )
assert expected_object_ids == actual_object_ids assert sorted(expected_object_ids) == sorted(actual_object_ids)
@allure.title("Validate static session with object id not in session") @allure.title("Validate static session with object id not in session")
def test_static_session_unrelated_object( def test_static_session_unrelated_object(