File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33export 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"
55export PYTEST_CONFIG=" $PYTEST_CONFIG_WITHOUT_COV --cov-config=setup.cfg --cov-report= --cov=mars"
66
77if [[ " $GITHUB_REF " =~ ^" refs/tags/" ]]; then
Original file line number Diff line number Diff 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 } "
You can’t perform that action at this time.
0 commit comments