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

[SR-15538] XCTAssert* should support async auto closures #439

Closed
tonyarnold opened this issue Nov 30, 2021 · 3 comments
Closed

[SR-15538] XCTAssert* should support async auto closures #439

tonyarnold opened this issue Nov 30, 2021 · 3 comments

Comments

@tonyarnold
Copy link

Previous ID SR-15538
Radar None
Original Reporter @tonyarnold
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s
Labels New Feature
Assignee None
Priority Medium

md5: 92389bef2056fcd8703f3b7ca3fd8cef

Issue Description:

Currently, when trying to use XCTest to assert scenarios in test cases, if I try to use async code within any of the functions, I get the following:

error: 'async' call in an autoclosure that does not support concurrency
XCTAssertTrue(try await someAsyncFunc())

It would be really really nice if this was supported.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis
Copy link

@parkera Can we transfer this to swift-corelibs-xctest?

@parkera parkera transferred this issue from swiftlang/swift Apr 19, 2023
@grynspan
Copy link
Contributor

Duplicate of #419. Thank you for filing! We'll track this issue further over there.

@grynspan
Copy link
Contributor

Duplicate of #419

@grynspan grynspan marked this as a duplicate of #419 Jun 28, 2023
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

No branches or pull requests

3 participants