Skip to content

Commit

Permalink
Remove #if compiler(<6) clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Dec 20, 2024
1 parent 2d216b4 commit 77b4e4d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Tests/AppTests/PackageCollectionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,7 @@ class PackageCollectionTests: AppTestCase {
keywords: ["key", "word"],
overview: "overview")

#if compiler(<6)
await MainActor.run { // validate
assertSnapshot(of: res, as: .json(encoder))
}
#else
assertSnapshot(of: res, as: .json(encoder))
#endif
}
}

Expand Down Expand Up @@ -521,13 +515,7 @@ class PackageCollectionTests: AppTestCase {
authorName: "Foo",
keywords: ["key", "word"])

#if compiler(<6)
await MainActor.run { // validate
assertSnapshot(of: res, as: .json(encoder))
}
#else
assertSnapshot(of: res, as: .json(encoder))
#endif
}
}

Expand Down Expand Up @@ -844,13 +832,7 @@ class PackageCollectionTests: AppTestCase {

// validate signed collection content
XCTAssertFalse(signedCollection.signature.signature.isEmpty)
#if compiler(<6)
await MainActor.run {
assertSnapshot(of: signedCollection, as: .json(encoder))
}
#else
assertSnapshot(of: signedCollection, as: .json(encoder))
#endif

// validate signature
let validated = try await SignedCollection.validate(signedCollection: signedCollection)
Expand Down

0 comments on commit 77b4e4d

Please sign in to comment.