From d9b750af1b522086ba59651497f01953d8859da0 Mon Sep 17 00:00:00 2001 From: cnkwocha Date: Fri, 13 Dec 2024 16:55:48 +0000 Subject: [PATCH] Add missing `@preconcurrency` `Security` import --- Tests/X509Tests/SecKeyWrapperTests.swift | 5 ++++- Tests/X509Tests/SignatureTests.swift | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Tests/X509Tests/SecKeyWrapperTests.swift b/Tests/X509Tests/SecKeyWrapperTests.swift index afd1e38..8fee824 100644 --- a/Tests/X509Tests/SecKeyWrapperTests.swift +++ b/Tests/X509Tests/SecKeyWrapperTests.swift @@ -12,8 +12,11 @@ // //===----------------------------------------------------------------------===// -@preconcurrency import XCTest +import XCTest @_spi(Testing) @testable import X509 +#if canImport(Darwin) +@preconcurrency import Security +#endif #if canImport(Darwin) final class SecKeyWrapperTests: XCTestCase { diff --git a/Tests/X509Tests/SignatureTests.swift b/Tests/X509Tests/SignatureTests.swift index 9a7ae8a..efc9d0f 100644 --- a/Tests/X509Tests/SignatureTests.swift +++ b/Tests/X509Tests/SignatureTests.swift @@ -12,11 +12,14 @@ // //===----------------------------------------------------------------------===// -@preconcurrency import XCTest +import XCTest @preconcurrency import Crypto import _CryptoExtras import SwiftASN1 @testable import X509 +#if canImport(Darwin) +@preconcurrency import Security +#endif final class SignatureTests: XCTestCase { static let now = Date()