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

Swift Testing support #96

Merged
merged 11 commits into from
Jul 22, 2024
Merged

Swift Testing support #96

merged 11 commits into from
Jul 22, 2024

Conversation

stephencelis
Copy link
Member

This adds Swift Testing support for the UnimplementedScheduler so that failures emit during @Test runs.

@stephencelis stephencelis requested a review from mbrandonw July 10, 2024 23:54
let cancellable = self.schedule(
after: self.now.advanced(by: interval),
interval: interval,
tolerance: tolerance,
options: options
) {
continuation.yield(self.now)
continuation.yield($scheduler.wrappedValue.now)
Copy link
Member Author

Choose a reason for hiding this comment

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

This "fixes" an unrelated issue that cropped up in beta 3. Seems that self.now is a detected data race. We could consider a better fix, but this is at least functionally the same as on main.

@stephencelis stephencelis merged commit 487a4d1 into main Jul 22, 2024
3 checks passed
@stephencelis stephencelis deleted the swift-testing branch July 22, 2024 22:38
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.

2 participants