Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
import logging
import os
import shutil
Expand Down Expand Up @@ -153,7 +154,8 @@ async def remove_project_efs_data(self, project_id: ProjectID) -> None:
if Path.exists(_dir_path):
# Remove the directory and all its contents
try:
shutil.rmtree(_dir_path)
loop = asyncio.get_event_loop()
await loop.run_in_executor(None, shutil.rmtree, _dir_path)
_logger.info("%s has been deleted.", _dir_path)
except FileNotFoundError:
_logger.exception("Directory %s does not exist.", _dir_path)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-playwright/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def log_in_and_out(
def _open_with_resources(page: Page, *, click_it: bool):
study_title_field = page.get_by_test_id("studyTitleField")
# wait until the title is automatically filled up
expect(study_title_field).not_to_have_value("")
expect(study_title_field).not_to_have_value("", timeout=30000)

open_with_resources_button = page.get_by_test_id("openWithResources")
if click_it:
Expand Down
Loading