mirror of
https://github.com/docker/compose.git
synced 2025-07-20 20:24:30 +02:00
Do not bleed env values outside of test.
Signed-off-by: Ashlie Martinez <ashmrtn@utexas.edu>
This commit is contained in:
parent
48166a79c7
commit
dc6b464751
@ -7,6 +7,7 @@ from threading import Lock
|
|||||||
import six
|
import six
|
||||||
from docker.errors import APIError
|
from docker.errors import APIError
|
||||||
|
|
||||||
|
from .. import mock
|
||||||
from compose.parallel import get_configured_limit
|
from compose.parallel import get_configured_limit
|
||||||
from compose.parallel import parallel_execute
|
from compose.parallel import parallel_execute
|
||||||
from compose.parallel import parallel_execute_iter
|
from compose.parallel import parallel_execute_iter
|
||||||
@ -69,6 +70,7 @@ def test_parallel_execute_with_limit():
|
|||||||
assert errors == {}
|
assert errors == {}
|
||||||
|
|
||||||
|
|
||||||
|
@mock.patch.dict(os.environ)
|
||||||
def test_parallel_execute_with_global_limit():
|
def test_parallel_execute_with_global_limit():
|
||||||
os.environ['COMPOSE_PARALLEL_LIMIT'] = '1'
|
os.environ['COMPOSE_PARALLEL_LIMIT'] = '1'
|
||||||
tasks = 20
|
tasks = 20
|
||||||
|
Loading…
x
Reference in New Issue
Block a user