Skip to content

Commit

Permalink
[translation] fix flaky canceling tests (Azure#22897)
Browse files Browse the repository at this point in the history
* fix flaky canceling tests

* skip aad tests in PPE for now, opened issue to investigate
  • Loading branch information
kristapratico authored and rakshith91 committed Apr 10, 2022
1 parent 642f089 commit 97c3e5e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_cancel_translation(self, client):
# check translation status
translation_details = client.get_translation_status(poller.id)
assert translation_details.status in ["Canceled", "Canceling"]
self._validate_translations(translation_details, total=docs_count)
self._validate_translations(translation_details)

poller.wait()
except HttpResponseError:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def test_cancel_translation(self, client):
# check translation status
translation_details = await client.get_translation_status(poller.id)
assert translation_details.status in ["Canceled", "Canceling"]
self._validate_translations(translation_details, total=docs_count)
self._validate_translations(translation_details)

await poller.wait()
except HttpResponseError:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

class TestTranslation(DocumentTranslationTest):

@pytest.mark.skip("Failing in PPE: https://github.com/Azure/azure-sdk-for-python/issues/22898")
@pytest.mark.live_test_only
@DocumentTranslationPreparer()
def test_active_directory_auth(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

class TestTranslation(AsyncDocumentTranslationTest):

@pytest.mark.skip("Failing in PPE: https://github.com/Azure/azure-sdk-for-python/issues/22898")
@pytest.mark.live_test_only
@DocumentTranslationPreparer()
async def test_active_directory_auth_async(self):
Expand Down

0 comments on commit 97c3e5e

Please sign in to comment.