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

Tests: Fix flaky work chain tests using recwarn fixture #6112

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Sep 5, 2023

The tests were often failing because the recwarn fixture contained
two records instead of one. The reason is that elsewhere in the code a
ResourceWarning is emitted because an event-loop is not closed when
another one is created. Until this is fixed, the assertion is updated to
not check for the number of warnings emitted, but specifically to check
the expected warning message is present.

@sphuber sphuber force-pushed the fix/flaky-log-test branch 2 times, most recently from d1a3cdb to 5143e01 Compare September 5, 2023 08:25
The tests were often failing because the `recwarn` fixture contained
two records instead of one. The reason is that elsewhere in the code a
`ResourceWarning` is emitted because an event-loop is not closed when
another one is created. Until this is fixed, the assertion is updated to
not check for the number of warnings emitted, but specifically to check
the expected warning message is present.
@sphuber sphuber changed the title Tests: Replace flaky recwarn fixture Tests: Fix flaky work chain tests using recwarn fixture Sep 5, 2023
@sphuber sphuber merged commit 2071517 into aiidateam:main Sep 5, 2023
10 checks passed
@sphuber sphuber deleted the fix/flaky-log-test branch September 5, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant