Skip to content

Commit 8013608

Browse files
authored
Resolve a compilation error and warnings in make test (#29)
1 parent ca3c94a commit 8013608

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

Sources/Integration/Suite.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ struct IntegrationSuite: AsyncParsableCommand {
5252
}()
5353

5454
private static var authentication: Authentication? {
55-
guard let password = ProcessInfo.processInfo.environment["REGISTRY_TOKEN"],
56-
let username = ProcessInfo.processInfo.environment["REGISTRY_USERNAME"]
55+
let env = ProcessInfo.processInfo.environment
56+
guard let password = env["REGISTRY_TOKEN"],
57+
let username = env["REGISTRY_USERNAME"]
5758
else {
5859
return nil
5960
}

Tests/ContainerizationExtrasTests/UInt8+DataBindingTest.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
import Testing
1919

20-
@testable import ContainerizationNetlink
21-
2220
struct BufferTest {
2321
@Test func testBufferBind() throws {
2422
let expectedValue: UInt64 = 0x0102_0304_0506_0708

Tests/ContainerizationOCITests/RegistryClientTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ struct OCIClientTests: ~Copyable {
308308

309309
static var authentication: Authentication? {
310310
let env = ProcessInfo.processInfo.environment
311-
guard let password = ProcessInfo.processInfo.environment["REGISTRY_TOKEN"],
312-
let username = ProcessInfo.processInfo.environment["REGISTRY_USERNAME"]
311+
guard let password = env["REGISTRY_TOKEN"],
312+
let username = env["REGISTRY_USERNAME"]
313313
else {
314314
return nil
315315
}

Tests/ContainerizationTests/ImageTests/ContainsAuth.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ extension ContainsAuth {
2929

3030
static var authentication: Authentication? {
3131
let env = ProcessInfo.processInfo.environment
32-
guard let password = ProcessInfo.processInfo.environment["REGISTRY_TOKEN"],
33-
let username = ProcessInfo.processInfo.environment["REGISTRY_USERNAME"]
32+
guard let password = env["REGISTRY_TOKEN"],
33+
let username = env["REGISTRY_USERNAME"]
3434
else {
3535
return nil
3636
}

Tests/SendablePropertyMacrosTests/SendablePropertyMacrosTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ import XCTest
2626
#if canImport(SendablePropertyMacros)
2727
import SendablePropertyMacros
2828

29-
let testMacros: [String: Macro.Type] = [
29+
// testMacros is thread-safe.
30+
nonisolated(unsafe) let testMacros: [String: Macro.Type] = [
3031
"SendableProperty": SendablePropertyMacro.self
3132
]
3233
#endif

0 commit comments

Comments
 (0)