Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
wjsi committed Jul 16, 2022
1 parent 6c5199b commit 13d2d3c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/reload-env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

export UNAME="$(uname | awk '{print tolower($0)}')"
export PYTEST_CONFIG_WITHOUT_COV="--log-level=DEBUG --timeout=1500 -W ignore::PendingDeprecationWarning"
export PYTEST_CONFIG_WITHOUT_COV="-p no:logging -s -v --timeout=1500 -W ignore::PendingDeprecationWarning"
export PYTEST_CONFIG="$PYTEST_CONFIG_WITHOUT_COV --cov-config=setup.cfg --cov-report= --cov=mars"

if [[ "$GITHUB_REF" =~ ^"refs/tags/" ]]; then
Expand Down
12 changes: 11 additions & 1 deletion mars/tests/test_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,19 @@ def _terminate(pid: int):
continue


@pytest.fixture
def config_log():
import logging
logging.basicConfig(level=logging.WARNING)
try:
yield
finally:
logging.basicConfig(level=logging.DEBUG)


@flaky(max_runs=3)
@pytest.mark.asyncio
async def test_cluster():
async def test_cluster(config_log):
port = get_next_port()
web_port = get_next_port()
supervisor_addr = f"127.0.0.1:{port}"
Expand Down

0 comments on commit 13d2d3c

Please sign in to comment.