Repository navigation
Add delay to address flaky fsevent test - #9310
Merged
Merged
Conversation
gridbugs
force-pushed
the
fsevent-test-delay
branch
from
November 29, 2023 02:09
fd33de6 to
4e14724
Compare
Collaborator
|
Is there a way to trigger the exception at a different time, for example by triggering a GC? (I don't know if that makes sense) |
Contributor
Author
|
I don't understand this suggestion. The test is testing that exceptions raised by event handlers are returned by |
Collaborator
|
nevermind, I was confused about the cause of the race condition. |
emillon
approved these changes
Nov 30, 2023
The test checks that exceptions raised in in event handlers cause the watcher to terminate and the exception is passed to the thread waiting on the watcher. The test is flaky because the watcher is stopped directly after some period of time and there's a race between this and the exception being raised. This change delays stopping the watcher directly so it's practically guaranteed that there will be time for the exception to be raised. Signed-off-by: Stephen Sherratt <[email protected]>
gridbugs
force-pushed
the
fsevent-test-delay
branch
from
November 30, 2023 10:24
4e14724 to
2d2a41b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The test checks that exceptions raised in in event handlers cause the watcher to terminate and the exception is passed to the thread waiting on the watcher. The test is flaky because the watcher is stopped directly after some period of time and there's a race between this and the exception being raised. This change delays stopping the watcher directly so it's practically guaranteed that there will be time for the exception to be raised.
Fixes #9299