Skip to content

Commit 818d7d6

Browse files
committed
Properly close session in tests
1 parent 3b78fe4 commit 818d7d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
BashAction,
1212
Command,
1313
CreateBashSessionRequest,
14+
CloseBashSessionRequest,
1415
)
1516
from swerex.runtime.remote import RemoteRuntime
1617
from swerex.utils.free_port import find_free_port
@@ -68,7 +69,7 @@ async def runtime_with_default_session(remote_runtime: RemoteRuntime):
6869
try:
6970
yield remote_runtime
7071
finally:
71-
await remote_runtime.close()
72+
await remote_runtime.close_session(CloseBashSessionRequest())
7273

7374

7475
class _Action(BashAction):

0 commit comments

Comments
 (0)