feat: Reduce resources for test containers
This commit is contained in:
@@ -134,6 +134,8 @@ def test_exec_working_dir_respected():
|
|||||||
image="python:3.11-slim",
|
image="python:3.11-slim",
|
||||||
command="sleep infinity",
|
command="sleep infinity",
|
||||||
working_dir="/tmp",
|
working_dir="/tmp",
|
||||||
|
cpu_limit=1,
|
||||||
|
memory_limit="256m",
|
||||||
)
|
)
|
||||||
sb.start()
|
sb.start()
|
||||||
try:
|
try:
|
||||||
@@ -249,6 +251,8 @@ def test_context_manager_stops_container():
|
|||||||
container_name="test-ctx-manager",
|
container_name="test-ctx-manager",
|
||||||
image="python:3.11-slim",
|
image="python:3.11-slim",
|
||||||
command="sleep infinity",
|
command="sleep infinity",
|
||||||
|
cpu_limit=1,
|
||||||
|
memory_limit="256m",
|
||||||
)
|
)
|
||||||
sb.start()
|
sb.start()
|
||||||
with sb:
|
with sb:
|
||||||
|
|||||||
Reference in New Issue
Block a user