Resolve a compilation error and warnings in make test (#29)

This commit is contained in:
Dmitry Kovba
2025-06-06 14:41:41 -07:00
committed by GitHub
parent ca3c94a0b6
commit 8013608979
5 changed files with 9 additions and 9 deletions
+3 -2
View File
@@ -52,8 +52,9 @@ struct IntegrationSuite: AsyncParsableCommand {
}()
private static var authentication: Authentication? {
guard let password = ProcessInfo.processInfo.environment["REGISTRY_TOKEN"],
let username = ProcessInfo.processInfo.environment["REGISTRY_USERNAME"]
let env = ProcessInfo.processInfo.environment
guard let password = env["REGISTRY_TOKEN"],
let username = env["REGISTRY_USERNAME"]
else {
return nil
}
@@ -17,8 +17,6 @@
import Testing
@testable import ContainerizationNetlink
struct BufferTest {
@Test func testBufferBind() throws {
let expectedValue: UInt64 = 0x0102_0304_0506_0708
@@ -308,8 +308,8 @@ struct OCIClientTests: ~Copyable {
static var authentication: Authentication? {
let env = ProcessInfo.processInfo.environment
guard let password = ProcessInfo.processInfo.environment["REGISTRY_TOKEN"],
let username = ProcessInfo.processInfo.environment["REGISTRY_USERNAME"]
guard let password = env["REGISTRY_TOKEN"],
let username = env["REGISTRY_USERNAME"]
else {
return nil
}
@@ -29,8 +29,8 @@ extension ContainsAuth {
static var authentication: Authentication? {
let env = ProcessInfo.processInfo.environment
guard let password = ProcessInfo.processInfo.environment["REGISTRY_TOKEN"],
let username = ProcessInfo.processInfo.environment["REGISTRY_USERNAME"]
guard let password = env["REGISTRY_TOKEN"],
let username = env["REGISTRY_USERNAME"]
else {
return nil
}
@@ -26,7 +26,8 @@ import XCTest
#if canImport(SendablePropertyMacros)
import SendablePropertyMacros
let testMacros: [String: Macro.Type] = [
// testMacros is thread-safe.
nonisolated(unsafe) let testMacros: [String: Macro.Type] = [
"SendableProperty": SendablePropertyMacro.self
]
#endif