From 1df326254863d09c7db232b7278d7f41141a5ceb Mon Sep 17 00:00:00 2001 From: onevcat Date: Mon, 9 Oct 2023 13:39:47 +0900 Subject: [PATCH] Move releasing test to non-macOS category --- Tests/APNGKitTests/APNGImageViewTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/APNGKitTests/APNGImageViewTests.swift b/Tests/APNGKitTests/APNGImageViewTests.swift index 30e8a1e..cc65ae3 100644 --- a/Tests/APNGKitTests/APNGImageViewTests.swift +++ b/Tests/APNGKitTests/APNGImageViewTests.swift @@ -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) @@ -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?