Skip to content

Commit

Permalink
Move releasing test to non-macOS category
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Oct 9, 2023
1 parent 7cf604b commit 1df3262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/APNGKitTests/APNGImageViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ class APNGImageViewTests: XCTestCase {
#endif
XCTAssertEqual(imageView.bounds, .init(origin: .zero, size: apng.size))
}


#if !os(macOS) // macOS has a "lazy release" behavior in test bundle, so these tests are failing on macOS
func testReleaseWhenNotAnimating() throws {
var imageView: DeinitInspectableAPNGImageView?
imageView = DeinitInspectableAPNGImageView(frame: .zero)
Expand All @@ -126,7 +127,6 @@ class APNGImageViewTests: XCTestCase {
XCTAssertTrue(deinitCalled)
}

#if !os(macOS) // macOS has a "lazy release" behavior in test bundle, so these tests are failing on macOS
func testReleaseWhenInitImage() throws {
let apng = createBallImage()
var imageView: DeinitInspectableAPNGImageView?
Expand Down

0 comments on commit 1df3262

Please sign in to comment.