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 flaky esm_module_deno_test test #16419

Merged
merged 5 commits into from
Oct 25, 2022

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Oct 25, 2022

Fixes #16416

The root problem here is that due to a race condition, logging outside the test can sometimes be captured within a test. This is because the output is captured on a separate thread. We should investigate this in the future (as long as it doesn't have performance implications I think). I briefly tried to fix it in this PR, but it caused a deadlock, so I reverted to just fixing the flaky test for now.

@dsherret dsherret marked this pull request as draft October 25, 2022 16:40
@dsherret dsherret changed the title fix(test): ensure test output logged outside a test does not get captured within a test chore: fix flaky esm_module_deno_test test Oct 25, 2022
@dsherret dsherret marked this pull request as ready for review October 25, 2022 16:44
@dsherret dsherret merged commit 3f22f91 into denoland:main Oct 25, 2022
@dsherret dsherret deleted the fix_flaky_esm_module_deno_test branch October 25, 2022 17:18
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.

integration::npm::esm_module_deno_test is flaky
2 participants