Skip to content

Silence a concurrency warning on Linux/Windows building an actor-isolated test. #680

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 11, 2024

We have one @MainActor, async test on a non-sendable XCTestCase subclass. Not surprisingly, this doesn't work fantastically well. Move the test out of the class to fix the resulting compiler diagnostic.

Related to swiftlang/swift-package-manager#7960.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…ated test.

We have one `@MainActor`, `async` test on a non-sendable `XCTestCase` subclass.
Not surprisingly, this doesn't work fantastically well. Move the test out of the
class to fix the resulting compiler diagnostic.

Related to swiftlang/swift-package-manager#7960.
@grynspan grynspan added bug 🪲 Something isn't working concurrency Swift concurrency/sendability issues labels Sep 11, 2024
@grynspan grynspan self-assigned this Sep 11, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit 9548fa2 into main Sep 11, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/silence-concurrency-warning branch September 11, 2024 20:11
@grynspan grynspan added this to the Swift 6.1 milestone Sep 20, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug 🪲 Something isn't working concurrency Swift concurrency/sendability issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants