Skip to content

Commit 65f65be

Browse files
committed
Fix Linux compile issues
1 parent 07db6e4 commit 65f65be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/DocUploadBundleTests/DocUploadBundleTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ final class DocUploadBundleTests: XCTestCase {
105105
try await withTempDir { tempDir in
106106
let url = fixtureUrl(for: "prod-apple-swift-metrics-main-e6a00d36.zip")
107107
XCTAssertNoThrow(
108-
try DocUploadBundle.unzip(bundle: url.path(), outputPath: tempDir)
108+
try DocUploadBundle.unzip(bundle: url.path, outputPath: tempDir)
109109
)
110110
for pathComponent in ["metadata.json",
111111
"main/index.html",
@@ -119,14 +119,14 @@ final class DocUploadBundleTests: XCTestCase {
119119
tempDir + "/main"].map(URL.init(fileURLWithPath:))
120120
let zipped = URL(fileURLWithPath: tempDir + "/out.zip")
121121
try Zipper.zip(paths: urls, to: zipped)
122-
XCTAssertTrue(FileManager.default.fileExists(atPath: zipped.path()))
122+
XCTAssertTrue(FileManager.default.fileExists(atPath: zipped.path))
123123
// unzip
124124
let out = URL(fileURLWithPath: tempDir + "/out")
125125
try Zipper.unzip(from: zipped, to: out)
126-
XCTAssertTrue(FileManager.default.fileExists(atPath: out.path()))
127-
XCTAssertTrue(FileManager.default.fileExists(atPath: out.appendingPathComponent("metadata.json").path()))
128-
XCTAssertTrue(FileManager.default.fileExists(atPath: out.appendingPathComponent("main/index.html").path()))
129-
XCTAssertTrue(FileManager.default.fileExists(atPath: out.appendingPathComponent("main/index/index.json").path()))
126+
XCTAssertTrue(FileManager.default.fileExists(atPath: out.path))
127+
XCTAssertTrue(FileManager.default.fileExists(atPath: out.appendingPathComponent("metadata.json").path))
128+
XCTAssertTrue(FileManager.default.fileExists(atPath: out.appendingPathComponent("main/index.html").path))
129+
XCTAssertTrue(FileManager.default.fileExists(atPath: out.appendingPathComponent("main/index/index.json").path))
130130
}
131131
}
132132

0 commit comments

Comments
 (0)