diff --git a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py index 00ce7474cde..d339f5e8733 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py @@ -265,7 +265,7 @@ def test_chat_remove_participants(self, communication_resource_info): self.cmd('az communication chat participant remove --thread {thread_id} --user {user_id} --yes') # assert 'The initiator doesn\'t have the permission to perform the requested operation.' in str(raises.exception) - # For now rest endpoint returns a 500 error, so we are checking for that + # For now rest endpoint returns a 403 error, so we are checking for that assert 'Operation returned an invalid status \'Forbidden\'' in str(raises.exception)