Skip to content

Commit 13d2d3c

Browse files
committed
TEST
1 parent 6c5199b commit 13d2d3c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

ci/reload-env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

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

77
if [[ "$GITHUB_REF" =~ ^"refs/tags/" ]]; then

mars/tests/test_cluster.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,19 @@ def _terminate(pid: int):
4747
continue
4848

4949

50+
@pytest.fixture
51+
def config_log():
52+
import logging
53+
logging.basicConfig(level=logging.WARNING)
54+
try:
55+
yield
56+
finally:
57+
logging.basicConfig(level=logging.DEBUG)
58+
59+
5060
@flaky(max_runs=3)
5161
@pytest.mark.asyncio
52-
async def test_cluster():
62+
async def test_cluster(config_log):
5363
port = get_next_port()
5464
web_port = get_next_port()
5565
supervisor_addr = f"127.0.0.1:{port}"

0 commit comments

Comments
 (0)