Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover tests that may randomly fail because DB racing in xdist test #6713

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all 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
4 changes: 2 additions & 2 deletions tests/tools/archive/orm/test_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_links_to_unknown_nodes(tmp_path, aiida_profile):
assert orm.QueryBuilder().append(entity_type='link').count() == 0


def test_input_and_create_links(tmp_path, aiida_profile):
def test_input_and_create_links(tmp_path, aiida_profile_clean):
"""Simple test that will verify that INPUT and CREATE links are properly exported and
correctly recreated upon import.
"""
Expand All @@ -74,7 +74,7 @@ def test_input_and_create_links(tmp_path, aiida_profile):
export_file = tmp_path.joinpath('export.aiida')
create_archive([node_output], filename=export_file)

aiida_profile.reset_storage()
aiida_profile_clean.reset_storage()

import_archive(export_file)
import_links = get_all_node_links()
Expand Down
Loading