mirror of
https://github.com/apple/container.git
synced 2026-09-12 10:45:42 +00:00
Resolve a compilation error and warnings in make test (#29)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user