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

chore: Fix tests (reproduces a race condition bug) #101

Merged
merged 5 commits into from
May 14, 2024

Conversation

mondeja
Copy link
Member

@mondeja mondeja commented May 14, 2024

Fixes tests for rules refactoring them. Currently, if you force a failure in a rule test, an error message will be printed but the test will not fail because raising an exception in the on('done') callback of the Linting event emitter class is not caught by mocha.

This fix has reproduced a race condition when using the library from source code, which is explained in a TODO comment.

@mondeja mondeja changed the title chore: Fix tests reproducing a race condition chore: Fix tests (reproduces a race condition bug) May 14, 2024
@mondeja mondeja merged commit 3ce8e62 into simple-icons:master May 14, 2024
8 checks passed
@mondeja mondeja deleted the fix-tests branch May 14, 2024 20:53
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