Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Add delay to watch-path tests to make them less flaky #19459

Merged
merged 1 commit into from
Jun 6, 2019
Merged

Conversation

rafeca
Copy link
Contributor

@rafeca rafeca commented Jun 6, 2019

I hate this PR, but that's the only way I've found to be able to fix the flakiness of the path-watcher tests (more info about the root cause on #19442 (comment)).

This does not fix the root problem, which seems to be that on Electron v3, nsfw sometimes needs several milliseconds to "warm up" on Windows to start receiving change events, but I've spent ~1 day debugging this and my current thinking is that fixing the root cause will take significantly longer.

In order to remove the flakiness (which is quite brutal in master), I've sent this PR.

@rafeca rafeca requested review from nathansobo and as-cii June 6, 2019 14:52
Copy link
Contributor

@nathansobo nathansobo left a comment

Choose a reason for hiding this comment

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

Is it worth only awaiting on Windows or is it better to be consistent?

@rafeca
Copy link
Contributor Author

rafeca commented Jun 6, 2019

Is it worth only awaiting on Windows or is it better to be consistent?

I don't think it hurts to await on other platforms, and this way there's less platform-specific logic...

@rafeca rafeca merged commit fca0681 into master Jun 6, 2019
@rafeca rafeca deleted the fix-flaky-test branch June 6, 2019 19:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants