@@ -4266,7 +4266,7 @@ final class WorkspaceTests: XCTestCase {
4266
4266
func testArtifactDownloadHappyPath( ) throws {
4267
4267
let sandbox = AbsolutePath ( " /tmp/ws/ " )
4268
4268
let fs = InMemoryFileSystem ( )
4269
- var downloads = [ Foundation . URL: AbsolutePath] ( )
4269
+ let downloads = ThreadSafeKeyValueStore < Foundation . URL , AbsolutePath > ( )
4270
4270
4271
4271
// returns a dummy zipfile for the requested artifact
4272
4272
let httpClient = HTTPClient ( handler: { request, _, completion in
@@ -4301,7 +4301,7 @@ final class WorkspaceTests: XCTestCase {
4301
4301
} )
4302
4302
4303
4303
// create a dummy xcframework directory from the request archive
4304
- let archiver = MockArchiver ( extract : { archiver, archivePath, destinationPath, completion in
4304
+ let archiver = MockArchiver ( handler : { archiver, archivePath, destinationPath, completion in
4305
4305
do {
4306
4306
let name : String
4307
4307
switch archivePath. basename {
@@ -4441,7 +4441,7 @@ final class WorkspaceTests: XCTestCase {
4441
4441
func testArtifactDownloadWithPreviousState( ) throws {
4442
4442
let sandbox = AbsolutePath ( " /tmp/ws/ " )
4443
4443
let fs = InMemoryFileSystem ( )
4444
- var downloads = [ Foundation . URL: AbsolutePath] ( )
4444
+ let downloads = ThreadSafeKeyValueStore < Foundation . URL , AbsolutePath > ( )
4445
4445
4446
4446
// returns a dummy zipfile for the requested artifact
4447
4447
let httpClient = HTTPClient ( handler: { request, _, completion in
@@ -4478,7 +4478,7 @@ final class WorkspaceTests: XCTestCase {
4478
4478
} )
4479
4479
4480
4480
// create a dummy xcframework directory from the request archive
4481
- let archiver = MockArchiver ( extract : { archiver, archivePath, destinationPath, completion in
4481
+ let archiver = MockArchiver ( handler : { archiver, archivePath, destinationPath, completion in
4482
4482
do {
4483
4483
let name : String
4484
4484
switch archivePath. basename {
@@ -4731,7 +4731,7 @@ final class WorkspaceTests: XCTestCase {
4731
4731
}
4732
4732
} )
4733
4733
4734
- let archiver = MockArchiver ( extract : { _, _, destinationPath, completion in
4734
+ let archiver = MockArchiver ( handler : { _, _, destinationPath, completion in
4735
4735
XCTAssertEqual ( destinationPath, AbsolutePath ( " /tmp/ws/.build/artifacts/A " ) )
4736
4736
completion ( . failure( DummyError ( ) ) )
4737
4737
} )
@@ -4871,7 +4871,7 @@ final class WorkspaceTests: XCTestCase {
4871
4871
func testDownloadArchiveIndexFilesHappyPath( ) throws {
4872
4872
let sandbox = AbsolutePath ( " /tmp/ws/ " )
4873
4873
let fs = InMemoryFileSystem ( )
4874
- var downloads = [ Foundation . URL: AbsolutePath] ( )
4874
+ let downloads = ThreadSafeKeyValueStore < Foundation . URL , AbsolutePath > ( )
4875
4875
let hostToolchain = try UserToolchain ( destination: . hostDestination( ) )
4876
4876
4877
4877
let ariFiles = [
@@ -4951,7 +4951,7 @@ final class WorkspaceTests: XCTestCase {
4951
4951
} )
4952
4952
4953
4953
// create a dummy xcframework directory from the request archive
4954
- let archiver = MockArchiver ( extract : { archiver, archivePath, destinationPath, completion in
4954
+ let archiver = MockArchiver ( handler : { archiver, archivePath, destinationPath, completion in
4955
4955
do {
4956
4956
let name : String
4957
4957
switch archivePath. basename {
@@ -5338,7 +5338,7 @@ final class WorkspaceTests: XCTestCase {
5338
5338
} )
5339
5339
5340
5340
// create a dummy xcframework directory from the request archive
5341
- let archiver = MockArchiver ( extract : { archiver, archivePath, destinationPath, completion in
5341
+ let archiver = MockArchiver ( handler : { archiver, archivePath, destinationPath, completion in
5342
5342
do {
5343
5343
let name : String
5344
5344
switch archivePath. basename {
0 commit comments