Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Sep 6, 2024
1 parent 84d232c commit 96ee005
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
- 5.9
- 5.10
include:
- { swift-version: 5.8, swift-branch: swift-5.8.1-RELEASE, swift-tag: 5.8.1-RELEASE }
- { swift-version: 5.9, swift-branch: swift-5.9.2-RELEASE, swift-tag: 5.9.2-RELEASE }
- { swift-version: 5.10, swift-branch: swift-5.10.1-RELEASE, swift-tag: 5.10.1-RELEASE }
- { swift-version: 5.8, swift-branch: swift-5.8.1-release, swift-tag: 5.8.1-RELEASE }
- { swift-version: 5.9, swift-branch: swift-5.9.2-release, swift-tag: 5.9.2-RELEASE }
- { swift-version: 5.10, swift-branch: swift-5.10.1-release, swift-tag: 5.10.1-RELEASE }
runs-on: windows-latest
timeout-minutes: 60
steps:
Expand Down
6 changes: 2 additions & 4 deletions Tests/ZipTests/ZipTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,10 @@ final class ZipTests: XCTestCase {
let unzipDestination = try Zip.quickUnzipFile(permissionsURL)
let permission644 = unzipDestination.appendingPathComponent("unsupported_permission").appendingPathExtension("txt")
let foundPermissions = try FileManager.default.attributesOfItem(atPath: permission644.path)[.posixPermissions] as? Int
#if os(Linux)
let expectedPermissions = 0o664
#elseif os(Windows)
#if os(Windows)
let expectedPermissions = 0o700
#else
let expectedPermissions = 0o644
let expectedPermissions = 0o664
#endif
XCTAssertNotNil(foundPermissions)
XCTAssertEqual(
Expand Down

0 comments on commit 96ee005

Please sign in to comment.