Skip to content

Fix a concurrency bug in the TestFileHandle.test_readToEndOfFileAndNotify() unit test. #4787

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

Merged

Conversation

grynspan
Copy link
Contributor

Fix a concurrency bug in the TestFileHandle.test_readToEndOfFileAndNotify() unit test.

This test fails to build when corelibs-xctest marks the expectation handler as @Sendable. The fix is to replace the use of a Bool value with a separate expectation.

@grynspan grynspan requested a review from compnerd June 26, 2023 19:21
@grynspan
Copy link
Contributor Author

@swift-ci please test

@Catfish-Man Catfish-Man self-requested a review June 26, 2023 19:25
Copy link
Contributor

@Catfish-Man Catfish-Man left a comment

Choose a reason for hiding this comment

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

lgtm

@grynspan grynspan merged commit 9062587 into main Jun 26, 2023
grynspan added a commit that referenced this pull request Jun 29, 2023
…Notify-concurrency-bug

Fix a concurrency bug in the TestFileHandle.test_readToEndOfFileAndNotify() unit test.
@parkera parkera deleted the jgrynspan/test_readToEndOfFileAndNotify-concurrency-bug branch July 30, 2024 22:11
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.

3 participants