From 0b2d2982abf215489db3cb57eb2c1b31661b0516 Mon Sep 17 00:00:00 2001 From: Matte23 Date: Mon, 4 May 2026 11:26:06 +0200 Subject: [PATCH] feat: Reduce resources for test containers --- tests/integration/test_sandbox.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/test_sandbox.py b/tests/integration/test_sandbox.py index 6b4f403..da44dd6 100644 --- a/tests/integration/test_sandbox.py +++ b/tests/integration/test_sandbox.py @@ -134,6 +134,8 @@ def test_exec_working_dir_respected(): image="python:3.11-slim", command="sleep infinity", working_dir="/tmp", + cpu_limit=1, + memory_limit="256m", ) sb.start() try: @@ -249,6 +251,8 @@ def test_context_manager_stops_container(): container_name="test-ctx-manager", image="python:3.11-slim", command="sleep infinity", + cpu_limit=1, + memory_limit="256m", ) sb.start() with sb: