-
Notifications
You must be signed in to change notification settings - Fork 70
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
Enable strict concurrency #213
Changes from 1 commit
080df47
d9b750a
71dfe4e
a46ff3f
edf6814
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
import XCTest | ||
@preconcurrency import XCTest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly I'm not convinced this is right, what errors did this silence? |
||
@_spi(Testing) @testable import X509 | ||
|
||
#if canImport(Darwin) | ||
|
@@ -62,9 +62,9 @@ final class SecKeyWrapperTests: XCTestCase { | |
} | ||
|
||
@available(macOS 11.0, iOS 14, tvOS 14, watchOS 7, *) | ||
func testPEMExport() throws { | ||
func testPEMExport() async throws { | ||
for candidate in try generateCandidateKeys() { | ||
try XCTContext.runActivity(named: "Testing \(candidate.type) key (size: \(candidate.keySize))") { _ in | ||
try await XCTContext.runActivity(named: "Testing \(candidate.type) key (size: \(candidate.keySize))") { _ in | ||
let secKeyWrapper = try Certificate.PrivateKey.SecKeyWrapper(key: candidate.key) | ||
|
||
if !candidate.sep { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
import XCTest | ||
@preconcurrency import XCTest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not convinced this is right. What errors did this silence? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, we have a missing import. Instead of putting
|
||
@preconcurrency import Crypto | ||
import _CryptoExtras | ||
import SwiftASN1 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to lose warnings-as-errors on 5.10, as we can no longer maintain it with this change.