Skip to content

Move PackageSigningTests to async/await #7132

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

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

AndrewHoos
Copy link
Contributor

Adopt async/await in PackageSigningTests

Motivation:

Continue my efforts to replace temp_await with actual await

Modifications:

Add async alternatives to PackageSigningEntityStorage
Mark non-async methods noasync
Improve the fixture method to return the result of the body

Result:

No temp_await usage in PackageSigningTests

@AndrewHoos AndrewHoos requested review from yim-lee and removed request for MaxDesiatov, neonichu and tomerd November 28, 2023 17:39
@MaxDesiatov
Copy link
Contributor

@swift-ci test

@AndrewHoos AndrewHoos force-pushed the async-PackageSigningTests branch from b4f14fa to 1375f1e Compare November 28, 2023 21:53
Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

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

This is great, but we should not need _ = for functions that don't return values or have @discardableResult on them.

…_await

Add async alternatives to PackageSigningEntityStorage
Mark non-async methods noasync
Improve the fixture method to return the result of the body
@AndrewHoos AndrewHoos force-pushed the async-PackageSigningTests branch from 1375f1e to 1b60a40 Compare November 28, 2023 23:22
@AndrewHoos
Copy link
Contributor Author

@swift-ci test

AndrewHoos

This comment was marked as off-topic.

@jakepetroules
Copy link
Contributor

@swift-ci please test windows

@MaxDesiatov MaxDesiatov merged commit 1895be2 into main Nov 29, 2023
@MaxDesiatov MaxDesiatov deleted the async-PackageSigningTests branch November 29, 2023 16:34
@MaxDesiatov MaxDesiatov added concurrency test suite improvements to SwiftPM test suite labels Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency test suite improvements to SwiftPM test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants