Skip to content

Commit

Permalink
Increase timeout of killed_ert_does_not_leave_storage_server_process
Browse files Browse the repository at this point in the history
Also add more debug info
  • Loading branch information
eivindjahren committed Jan 23, 2025
1 parent b7aa307 commit d4a49e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ert/services/_storage_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def main() -> None:
logger = logging.getLogger("ert.shared.storage.info")
try:
logger.info("Starting dark storage")
logger.info(f"Started dark storage with parent {args.parent_pid}")
run_server(args, debug=False, uvicorn_config=uvicorn_config)
except SystemExit:
logger.info("Stopping dark storage")
Expand Down
5 changes: 4 additions & 1 deletion tests/ert/ui_tests/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,9 @@ async def _wait_for_storage_process_to_shut_down():
if not storage_process.is_running():
storage_server_has_shutdown.set()
await asyncio.sleep(0.1)
print(
f"Waiting for killed ert:{ert_subprocess.pid} to stop storage:{storage_process.pid}"
)

await asyncio.wait_for(_wait_for_storage_process_to_shut_down(), timeout=45)
await asyncio.wait_for(_wait_for_storage_process_to_shut_down(), timeout=90)
assert not storage_process.is_running()

0 comments on commit d4a49e4

Please sign in to comment.