Skip to content

Commit

Permalink
test: skip flaky tests (#1598)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Jan 5, 2021
1 parent 692c2d9 commit 3a90cbb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion tests/unit/peapods/pods/test_pods.py
@@ -1,5 +1,6 @@
import pytest
import os

import pytest
from jina.parsers import set_gateway_parser
from jina.parsers import set_pod_parser
from jina.peapods import Pod
Expand All @@ -20,6 +21,9 @@ def test_pod_context_parallel(runtime, parallel):
Pod(args).start().close()


@pytest.mark.skipif('GITHUB_WORKFLOW' in os.environ,
reason='for unknown reason, this test is flaky on Github action, '
'but locally it SHOULD work fine')
@pytest.mark.parametrize('restful', [True, False])
@pytest.mark.parametrize('runtime', ['process', 'thread'])
@pytest.mark.parametrize('runtime_cls', ['RESTRuntime', 'GRPCRuntime'])
Expand Down
Expand Up @@ -42,7 +42,6 @@ def test_simple_container(docker_image_built):
Pea(args).start().close()


@pytest.mark.skip(reason='flaky, will be refactored as part of #1539')
def test_simple_container_with_ext_yaml(docker_image_built):
args = set_pea_parser().parse_args(['--uses', f'docker://{img_name}',
'--uses-internal',
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/peapods/runtimes/test_runtimes.py
Expand Up @@ -30,7 +30,8 @@ class Pea1(BasePea):


@pytest.mark.skipif('GITHUB_WORKFLOW' in os.environ,
reason='this test is flaky on Github action, but locally it SHOULD work fine')
reason='for unknown reason, this test is flaky on Github action, '
'but locally it SHOULD work fine')
@pytest.mark.parametrize('cls', [GRPCRuntime, RESTRuntime])
@pytest.mark.parametrize('runtime', ['thread', 'process'])
def test_gateway_runtime(cls, runtime):
Expand Down

0 comments on commit 3a90cbb

Please sign in to comment.