diff --git a/tests/rpc_agent_test.py b/tests/rpc_agent_test.py index d70613268..321087a44 100644 --- a/tests/rpc_agent_test.py +++ b/tests/rpc_agent_test.py @@ -4,6 +4,7 @@ """ import unittest import time +import os import shutil from loguru import logger @@ -159,14 +160,15 @@ def setUp(self) -> None: agentscope.init( project="test", name="rpc_agent", - save_dir="./test_runs", + save_dir="./.unittest_runs", save_log=True, ) + self.assertTrue(os.path.exists("./.unittest_runs")) def tearDown(self) -> None: MonitorFactory._instance = None # pylint: disable=W0212 logger.remove() - shutil.rmtree("./test_runs") + shutil.rmtree("./.unittest_runs") def test_single_rpc_agent_server(self) -> None: """test setup a single rpc agent"""