Skip to content

Commit b0bd1b2

Browse files
committed
Update python tests
1 parent 1cb1766 commit b0bd1b2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

python/tests/async/test_async_reconnect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
async def test_reconnect(async_sandbox: AsyncSandbox):
55
sandbox_id = async_sandbox.sandbox_id
66

7-
sandbox2 = await AsyncSandbox.connect(sandbox_id)
7+
sandbox2 = await AsyncSandbox.connect(sandbox_id, auto_pause=True)
88
result = await sandbox2.run_code("x =1; x")
99
assert result.text == "1"

python/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@pytest.fixture()
1414
def sandbox(debug):
15-
sandbox = Sandbox(timeout=timeout)
15+
sandbox = Sandbox(timeout=timeout, auto_pause=True)
1616

1717
try:
1818
yield sandbox
@@ -28,7 +28,7 @@ def sandbox(debug):
2828

2929
@pytest_asyncio.fixture
3030
async def async_sandbox(debug):
31-
sandbox = await AsyncSandbox.create(timeout=timeout)
31+
sandbox = await AsyncSandbox.create(timeout=timeout, auto_pause=True)
3232

3333
try:
3434
yield sandbox

python/tests/sync/test_reconnect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
def test_reconnect(sandbox: Sandbox):
55
sandbox_id = sandbox.sandbox_id
66

7-
sandbox2 = Sandbox.connect(sandbox_id)
7+
sandbox2 = Sandbox.connect(sandbox_id, auto_pause=True)
88
result = sandbox2.run_code("x =1; x")
99
assert result.text == "1"

0 commit comments

Comments
 (0)