From d2ca1c6c53ce4a715292e2cce5a073470a7d914d Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Sun, 12 Jan 2025 00:30:34 +0100 Subject: [PATCH] Run memory leak test for computer SSH --- src/aiida/tools/pytest_fixtures/orm.py | 1 + tests/engine/test_memory_leaks.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aiida/tools/pytest_fixtures/orm.py b/src/aiida/tools/pytest_fixtures/orm.py index 0ed7ea18d7..52fd0eb322 100644 --- a/src/aiida/tools/pytest_fixtures/orm.py +++ b/src/aiida/tools/pytest_fixtures/orm.py @@ -183,6 +183,7 @@ def factory(label: str | None = None, configure: bool = True) -> 'Computer': computer.configure( key_filename=str(ssh_key), key_policy='AutoAddPolicy', + safe_interval=1.0, ) return computer diff --git a/tests/engine/test_memory_leaks.py b/tests/engine/test_memory_leaks.py index e59ff98366..6972b9e0db 100644 --- a/tests/engine/test_memory_leaks.py +++ b/tests/engine/test_memory_leaks.py @@ -65,7 +65,6 @@ def test_leak_local_calcjob(aiida_code_installed): @pytest.mark.skipif(sys.version_info >= (3, 12), reason='Garbage collecting hangs on Python 3.12') -@pytest.mark.nightly @pytest.mark.usefixtures('aiida_profile', 'check_memory_leaks') def test_leak_ssh_calcjob(aiida_computer_ssh): """Test whether running a CalcJob over SSH leaks memory.