Skip to content

Commit 377bfe4

Browse files
committed
Dropping superfluous test
1 parent 886b06f commit 377bfe4

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

Tests/DocUploadBundleTests/DocUploadBundleTests.swift

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ final class DocUploadBundleTests: XCTestCase {
100100
.init(bucket: "spi-prod-docs", path: "owner/name/feature-2.0.0"))
101101
}
102102

103-
func test_issue_3069_swift_metrics() async throws {
103+
func test_issue_3069() async throws {
104104
// https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/3069
105105
try await withTempDir { tempDir in
106106
let url = fixtureUrl(for: "prod-apple-swift-metrics-main-e6a00d36.zip")
@@ -130,34 +130,4 @@ final class DocUploadBundleTests: XCTestCase {
130130
}
131131
}
132132

133-
func test_issue_3069_swift_dependencies() async throws {
134-
// https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/3069
135-
try await withTempDir { tempDir in
136-
let url = fixtureUrl(for: "dev-pointfreeco-swift-dependencies-1b9fc8fc0d7177b39d5f60ba86f70295b56d0589-cafecafe.zip")
137-
XCTAssertNoThrow(
138-
try DocUploadBundle.unzip(bundle: url.path(), outputPath: tempDir)
139-
)
140-
for pathComponent in ["metadata.json",
141-
"1b9fc8fc0d7177b39d5f60ba86f70295b56d0589/index.html",
142-
"1b9fc8fc0d7177b39d5f60ba86f70295b56d0589/index/index.json"] {
143-
let path = tempDir + "/" + pathComponent
144-
XCTAssertTrue(FileManager.default.fileExists(atPath: path), "does not exist: \(path)")
145-
}
146-
// test roundtrip, to ensure the zip library can zip/unzip its own product
147-
// zip
148-
let urls = [tempDir + "/metadata.json",
149-
tempDir + "/1b9fc8fc0d7177b39d5f60ba86f70295b56d0589"].map(URL.init(fileURLWithPath:))
150-
let zipped = URL(fileURLWithPath: tempDir + "/out.zip")
151-
try Zipper.zip(paths: urls, to: zipped)
152-
XCTAssertTrue(FileManager.default.fileExists(atPath: zipped.path()))
153-
// unzip
154-
let out = URL(fileURLWithPath: tempDir + "/out")
155-
try Zipper.unzip(from: zipped, to: out)
156-
XCTAssertTrue(FileManager.default.fileExists(atPath: out.path()))
157-
XCTAssertTrue(FileManager.default.fileExists(atPath: out.appendingPathComponent("metadata.json").path()))
158-
XCTAssertTrue(FileManager.default.fileExists(atPath: out.appendingPathComponent("1b9fc8fc0d7177b39d5f60ba86f70295b56d0589/index.html").path()))
159-
XCTAssertTrue(FileManager.default.fileExists(atPath: out.appendingPathComponent("1b9fc8fc0d7177b39d5f60ba86f70295b56d0589/index/index.json").path()))
160-
}
161-
}
162-
163133
}

0 commit comments

Comments
 (0)