File tree Expand file tree Collapse file tree
ContainerizationTests/ImageTests
SendablePropertyMacrosTests Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 1717
1818import Testing
1919
20- @testable import ContainerizationNetlink
21-
2220struct BufferTest {
2321 @Test func testBufferBind( ) throws {
2422 let expectedValue : UInt64 = 0x0102_0304_0506_0708
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ import XCTest
2626#if canImport(SendablePropertyMacros)
2727import 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
You can’t perform that action at this time.
0 commit comments