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

Fix hang/crash when using --check-databases option for test run #2410

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dbartol
Copy link
Contributor

@dbartol dbartol commented May 8, 2023

Trivial fix is to ignore events for tests we didn't explicitly request in the run.

I also discovered that sometimes the CLI emits an empty null-terminated string as an event. We should just ignore those.

@dbartol dbartol requested a review from a team as a code owner May 8, 2023 21:51
@dbartol dbartol added the Complexity: Low A good task for newcomers to learn, or experienced team members to complete quickly. label May 8, 2023
);
// If the user manually adds the `--check-databases` option, we can get events for the
// corresponding database check tests. Just ignore these for now.
if (testItem !== undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is fine, but maybe can you add a log message for the unexpected event.test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Low A good task for newcomers to learn, or experienced team members to complete quickly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants