Skip to content

Commit

Permalink
Fix time
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Dec 6, 2024
1 parent 1b7319b commit 38d7a57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hypha/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -2745,7 +2745,7 @@ async def upload_files(dir_path=""):

async def prepare_workspace(self, workspace_info: WorkspaceInfo):
"""Prepare all artifacts in the workspace."""
await asyncio.sleep(5)
pass

async def close_workspace(self, workspace_info: WorkspaceInfo):
"""Archive all artifacts in the workspace."""
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

JWT_SECRET = str(uuid.uuid4())
os.environ["JWT_SECRET"] = JWT_SECRET
os.environ["ACTIVITY_CHECK_INTERVAL"] = "1"
os.environ["ACTIVITY_CHECK_INTERVAL"] = "0.3"
test_env = os.environ.copy()


Expand Down
4 changes: 2 additions & 2 deletions tests/test_server_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ async def test_daemon_apps(fastapi_server, test_user_token, root_user_token):
apps = await controller.list_apps()
assert find_item(apps, "id", config.app_id)

await asyncio.sleep(0.5)
await asyncio.sleep(1)

async with connect_to_server(
{"server_url": WS_SERVER_URL, "client_id": "admin", "token": root_user_token}
Expand Down Expand Up @@ -412,7 +412,7 @@ async def test_stop_after_inactive(fastapi_server, test_user_token):
app = await controller.start(app_info.id, stop_after_inactive=1)
apps = await controller.list_running()
assert find_item(apps, "id", app.id) is not None
await asyncio.sleep(3)
await asyncio.sleep(4)
apps = await controller.list_running()
assert find_item(apps, "id", app.id) is None
await controller.uninstall(app_info.id)
Expand Down

0 comments on commit 38d7a57

Please sign in to comment.