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

Avoid race condition in Reporter errorsBuilder #36

Closed
wants to merge 1 commit into from

Conversation

anetaporebska
Copy link
Contributor

@anetaporebska anetaporebska commented May 21, 2024

Fixes #17

Comment on lines +73 to 75
def clearErrors(): Unit = {
errorsBuilder.clear()
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: add resetAndClearErrors method to avoid repeating subsequent reset and clearError calls in other places

header = "",
)

test("Multiple evaluations of invalid expressions should always fail") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add test case with mixed correct and incorrect expressions

Also check corner case, when invalid expression is the last one before reaching settings.resetAfterCount and next expression is valid

@anetaporebska
Copy link
Contributor Author

Closing since it touches core scex functionalities and the regression risk is too high

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.

Completer.getErrors gives quite a lot of false positives
2 participants