File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 44async 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"
Original file line number Diff line number Diff line change 1212
1313@pytest .fixture ()
1414def 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
3030async 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
Original file line number Diff line number Diff line change 44def 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"
You can’t perform that action at this time.
0 commit comments