Skip to content

Commit dd5d6b9

Browse files
authored
[NFC] Resolve test file's build errors. (#6046)
1 parent d0f7d9d commit dd5d6b9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Tests/FunctionalTests/PluginTests.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ class PluginTests: XCTestCase {
463463
accessibleTools: [:],
464464
writableDirectories: [pluginDir.appending(component: "output")],
465465
readOnlyDirectories: [package.path],
466+
pkgConfigDirectories: [],
466467
fileSystem: localFileSystem,
467468
observabilityScope: observability.topScope,
468469
callbackQueue: delegateQueue,
@@ -645,10 +646,14 @@ class PluginTests: XCTestCase {
645646
XCTAssertNoDiagnostics(observability.diagnostics)
646647
XCTAssert(packageGraph.packages.count == 1, "\(packageGraph.packages)")
647648
XCTAssert(packageGraph.rootPackages.count == 1, "\(packageGraph.rootPackages)")
648-
let package = try XCTUnwrap(packageGraph.rootPackages.first)
649+
let package: ResolvedPackage = try XCTUnwrap(packageGraph.rootPackages.first)
649650

650651
// Find the regular target in our test package.
651-
let libraryTarget = try XCTUnwrap(package.targets.map(\.underlyingTarget).first{ $0.name == "MyLibrary" } as? SwiftTarget)
652+
let libraryTarget = try XCTUnwrap(
653+
package.targets
654+
.map(\.underlyingTarget)
655+
.first{ $0.name == "MyLibrary" } as? SwiftTarget
656+
)
652657
XCTAssertEqual(libraryTarget.type, .library)
653658

654659
// Set up a delegate to handle callbacks from the command plugin. In particular we want to know the process identifier.
@@ -724,6 +729,7 @@ class PluginTests: XCTestCase {
724729
accessibleTools: [:],
725730
writableDirectories: [pluginDir.appending(component: "output")],
726731
readOnlyDirectories: [package.path],
732+
pkgConfigDirectories: [],
727733
fileSystem: localFileSystem,
728734
observabilityScope: observability.topScope,
729735
callbackQueue: delegateQueue,

0 commit comments

Comments
 (0)