diff --git a/pytest_tests/testsuites/services/http_gate/test_http_headers.py b/pytest_tests/testsuites/services/http_gate/test_http_headers.py index e6540b551..83f807265 100644 --- a/pytest_tests/testsuites/services/http_gate/test_http_headers.py +++ b/pytest_tests/testsuites/services/http_gate/test_http_headers.py @@ -25,7 +25,6 @@ from helpers.storage_object_info import StorageObjectInfo from steps.cluster_test_base import ClusterTestBase -OBJECT_ALREADY_REMOVED_ERROR = "object already removed" logger = logging.getLogger("NeoLogger") @@ -146,10 +145,11 @@ def test_object2_can_be_get_by_attr( shell=self.shell, endpoint=self.cluster.default_rpc_endpoint, ) + error_pattern = "404 Not Found" try_to_get_object_and_expect_error( cid=storage_object_2.cid, oid=storage_object_2.oid, - error_pattern=OBJECT_ALREADY_REMOVED_ERROR, + error_pattern=error_pattern, endpoint=self.cluster.default_http_gate_endpoint, ) storage_objects_with_attributes.remove(storage_object_2)