Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Retry flaky crowdsourcing tests #3825

Merged
merged 1 commit into from Jul 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/crowdsourcing/tasks/model_chat/test_model_chat.py
Expand Up @@ -82,6 +82,7 @@ def setUp(self) -> None:
def tearDown(self) -> None:
self._teardown()

@testing_utils.retry(ntries=3)
def test_base_task(self):

with testing_utils.tempdir() as tmpdir:
Expand Down
Expand Up @@ -64,6 +64,7 @@ def setUp(self) -> None:
def tearDown(self) -> None:
self._teardown()

@testing_utils.retry(ntries=3)
def test_base_task(self):

with testing_utils.tempdir() as tmpdir:
Expand Down
3 changes: 3 additions & 0 deletions tests/crowdsourcing/tasks/test_chat_demo.py
Expand Up @@ -10,6 +10,8 @@
import os
import unittest

import parlai.utils.testing as testing_utils


# Desired inputs/outputs
EXPECTED_STATE_AGENT_0 = {
Expand Down Expand Up @@ -372,6 +374,7 @@ def setUp(self) -> None:
def tearDown(self) -> None:
self._teardown()

@testing_utils.retry(ntries=3)
def test_base_task(self):

# # Setup
Expand Down