Skip to content

Commit 8edd50c

Browse files
Use XCTUnwrap in testRelativeScratchPath
1 parent 54c0194 commit 8edd50c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/BuildSystemIntegrationTests/SwiftPMBuildSystemTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ final class SwiftPMBuildSystemTests: XCTestCase {
119119
)
120120

121121
let dataPath = await swiftpmBuildSystem.destinationBuildParameters.dataPath
122-
let expectedScratchPath = packageRoot.appending(component: options.swiftPMOrDefault.scratchPath!)
122+
let expectedScratchPath = packageRoot.appending(component: try XCTUnwrap(options.swiftPMOrDefault.scratchPath))
123123
XCTAssertTrue(AbsolutePath(dataPath).isDescendant(of: expectedScratchPath))
124124
}
125125
}

0 commit comments

Comments
 (0)