From 13d2d3c4bceeac07b156a55fbb0799e4a417599c Mon Sep 17 00:00:00 2001 From: wjsi Date: Sat, 18 Jun 2022 20:30:15 +0800 Subject: [PATCH] TEST --- ci/reload-env.sh | 2 +- mars/tests/test_cluster.py | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ci/reload-env.sh b/ci/reload-env.sh index 7b8b26d8bd..ad2870c352 100755 --- a/ci/reload-env.sh +++ b/ci/reload-env.sh @@ -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 diff --git a/mars/tests/test_cluster.py b/mars/tests/test_cluster.py index 7a352c9f35..ce21332da8 100644 --- a/mars/tests/test_cluster.py +++ b/mars/tests/test_cluster.py @@ -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}"