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(test): wait for inspector session in side modules #13065

Merged
merged 2 commits into from
Dec 15, 2021
Merged

fix(test): wait for inspector session in side modules #13065

merged 2 commits into from
Dec 15, 2021

Conversation

jespertheend
Copy link
Contributor

@jespertheend jespertheend commented Dec 13, 2021

Fixes #12584

This the first time I've ever worked with rust so apologies if this a terrible PR.
All tests passed locally except for test_respect_cache_revalidates which was already failing without this change.

One thing I was a bit worried about was that this change would cause multiple breaks every time a new module is loaded. But I couldn't find any case where this happens.

Also, should a new test case for this specific issue be added? I couldn't find any existing tests checking for the inspector like this, so I'm not sure I'm capable of writing such a test case.

@jespertheend jespertheend changed the title fix(test): wait for inspector session in side modules (#12584) fix(test): wait for inspector session in side modules Dec 13, 2021
@bartlomieju
Copy link
Member

Thanks @jespertheend this indeed fixes the problem with debugging tests. I'll add a test case and land it for v1.17

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @jespertheend for looking into this issue.

@bartlomieju bartlomieju merged commit 0f53b82 into denoland:main Dec 15, 2021
@jespertheend jespertheend deleted the test-runner-debugger-fix branch December 20, 2021 15:00
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.

Can't use inspector with test runner
2 participants