Skip to content

Commit

Permalink
Run memory leak test for computer SSH
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Jan 11, 2025
1 parent 15b5caf commit d2ca1c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/aiida/tools/pytest_fixtures/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/engine/test_memory_leaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d2ca1c6

Please sign in to comment.