From b9109a6dea25272e8e1ff518096c09a86cefc030 Mon Sep 17 00:00:00 2001 From: "solve-bug[bot]" <231731498+solve-bug[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 05:54:30 +0000 Subject: [PATCH] Fix: [live-matrix] address_review_with_pr from #9: Cross-platform test c --- tests/test_medium.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_medium.py b/tests/test_medium.py index 04b933c..bc9a645 100644 --- a/tests/test_medium.py +++ b/tests/test_medium.py @@ -108,7 +108,7 @@ def test_write_empty_content(self): class TestRunCommandEdges(unittest.TestCase): def test_timeout(self): - result = run_command("sleep 10", timeout=1) + result = run_command('python -c "import time; time.sleep(10)"', timeout=1) self.assertEqual(result["returncode"], -1) self.assertIn("timed out", result["stderr"]) @@ -128,7 +128,7 @@ def test_custom_timeout_via_dispatch(self): def test_pipe_command(self): result = dispatch("run_command", json.dumps({ - "command": "echo hello world | grep hello", + "command": "python -c \"print('hello world')\" | python -c \"import sys; sys.stdout.writelines(l for l in sys.stdin if 'hello' in l)\"", })) self.assertIn("hello world", result)