You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to name each process in the test function.
I do not want to run it in the main thread.
Expected behavior
No response
Actual behavior
No response
Steps to reproduce
No response
swift-testing version/commit hash
70f5963
Swift & OS version (output of swift --version && uname -a)
$ swift --version && uname -a
swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
Target: arm64-apple-macosx13.0
Darwin uhooinoMacBook-Air.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 arm64
The text was updated successfully, but these errors were encountered:
Thank you for filing! It would be very helpful if, instead of writing "SSIA", you could give us more information about the problem you're seeing. In this case, please tell us what you need runActivity() for so that we can better-understand your use case and figure out how to prioritize this request.
Regarding the error you're seeing: XCTContext.runActivity(named:) is main-thread-bound, but test functions in swift-testing run on arbitrary threads. You can resolve this runtime issue by adding @MainActor to the test function declaration.
Description
SSIAI want to name each process in the test function.
I do not want to run it in the main thread.
Expected behavior
No response
Actual behavior
No response
Steps to reproduce
No response
swift-testing version/commit hash
70f5963
Swift & OS version (output of
swift --version && uname -a
)The text was updated successfully, but these errors were encountered: