Skip to content

Commit

Permalink
Try to use same tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Sep 10, 2024
1 parent 7aa2848 commit af87289
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Tests/ZipTests/ZipTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -341,17 +341,14 @@ final class ZipTests: XCTestCase {
let failDestinationPath = try autoRemovingSandbox()
XCTAssertThrowsError(try Zip.unzipFile(zipFilePath, destination: failDestinationPath, overwrite: true))

#if os(Windows)
// "prod-apple-swift-metrics-main-e6a00d36-finder.zip" is a zip file
// that was created by unzipping the original zip file with Finder on macOS 14.6.1
// and then zipping it again using Finder on macOS 14.6.1.
let testZipFilePath = url(forResource: "prod-apple-swift-metrics-main-e6a00d36-finder", withExtension: "zip")!
#else

// "prod-apple-swift-metrics-main-e6a00d36-test.zip" is a zip file
// that was created by unzipping the original zip file with Finder on macOS 14.6.1
// and then zipping it again using vapor-community/Zip v2.2.0.
let testZipFilePath = url(forResource: "prod-apple-swift-metrics-main-e6a00d36-test", withExtension: "zip")!
#endif
let destinationPath = try autoRemovingSandbox()
XCTAssertNoThrow(try Zip.unzipFile(testZipFilePath, destination: destinationPath, overwrite: true))

Expand Down

0 comments on commit af87289

Please sign in to comment.