8000 Polling expectations (toEventually & the like) do not work well with Swift Testing's concurrent test runner. · Issue #1188 · Quick/Nimble · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Polling expectations (toEventually & the like) do not work well with Swift Testing's concurrent test runner. #1188

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

Open
younata opened this issue Mar 23, 2025 · 0 comments
Labels

Comments

@younata
Copy link
Member
younata commented Mar 23, 2025

Polling expectations were written under the assumption that there would only ever be 1 test running at a time. While this is true under XCTest, it's no longer the case when running under Swift Testing.

For now, you can work around this by making sure that all Swift Testing tests which use polling expectations are tagged to run on the main actor. This will ensure that they run single-threaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0