Skip to content

Commit e3d518c

Browse files
authored
session: fix tests to match updated node behavior (#774)
2 parents 71a7d6e + 51683b3 commit e3d518c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_tests/tests/session_token/test_static_object_session_token.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def test_static_session_signed_by_other(
380380
temp_directory,
381381
)
382382
signed_token_file = sign_session_token(self.shell, session_token_file, stranger_wallet)
383-
with pytest.raises(Exception, match=MALFORMED_REQUEST):
383+
with pytest.raises(Exception, match=OBJECT_ACCESS_DENIED):
384384
head_object(
385385
user_wallet.path,
386386
storage_object.cid,
@@ -670,7 +670,7 @@ def test_static_session_put_verb(
670670
f"Put verb should be restricted for static session for {request.node.callspec.id}"
671671
)
672672
storage_object = storage_objects[0]
673-
with pytest.raises(Exception, match=MALFORMED_REQUEST):
673+
with pytest.raises(Exception, match=OBJECT_ACCESS_DENIED):
674674
put_object_to_random_node(
675675
user_wallet.path,
676676
storage_object.file_path,

0 commit comments

Comments
 (0)