Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Sources/Integration/Suite.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 0 additions & 2 deletions Tests/ContainerizationExtrasTests/UInt8+DataBindingTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

import Testing

@testable import ContainerizationNetlink

struct BufferTest {
@Test func testBufferBind() throws {
let expectedValue: UInt64 = 0x0102_0304_0506_0708
Expand Down
4 changes: 2 additions & 2 deletions Tests/ContainerizationOCITests/RegistryClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/ContainerizationTests/ImageTests/ContainsAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down