From c0f27a3e48cdbd2aeb2a88ed9b9a8cec61403b5f Mon Sep 17 00:00:00 2001 From: Felix Mau Date: Fri, 29 Apr 2022 18:43:44 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20::=20Remove=20outdated=20c?= =?UTF-8?q?ode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GradientLoadingBarControllerTestCase.swift | 7 ------- .../NotchGradientLoadingBarControllerTestCase.swift | 7 ------- 2 files changed, 14 deletions(-) diff --git a/Example/ExampleSnapshotTests/GradientLoadingBarController/GradientLoadingBarControllerTestCase.swift b/Example/ExampleSnapshotTests/GradientLoadingBarController/GradientLoadingBarControllerTestCase.swift index dd0a0a2..b67cad0 100644 --- a/Example/ExampleSnapshotTests/GradientLoadingBarController/GradientLoadingBarControllerTestCase.swift +++ b/Example/ExampleSnapshotTests/GradientLoadingBarController/GradientLoadingBarControllerTestCase.swift @@ -30,14 +30,7 @@ final class GradientLoadingBarControllerTestCase: XCTestCase { // When gradientLoadingBarController.fadeIn(duration: 0) - let expectation = expectation(description: "Wait for view to appear.") - DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { - expectation.fulfill() - } - // Then - wait(for: [expectation], timeout: 1) - assertSnapshot(matching: rootViewController, as: .image(drawHierarchyInKeyWindow: true, precision: Config.precision)) } diff --git a/Example/ExampleSnapshotTests/GradientLoadingBarController/NotchGradientLoadingBarControllerTestCase.swift b/Example/ExampleSnapshotTests/GradientLoadingBarController/NotchGradientLoadingBarControllerTestCase.swift index 49c744e..7b74cc9 100644 --- a/Example/ExampleSnapshotTests/GradientLoadingBarController/NotchGradientLoadingBarControllerTestCase.swift +++ b/Example/ExampleSnapshotTests/GradientLoadingBarController/NotchGradientLoadingBarControllerTestCase.swift @@ -31,14 +31,7 @@ final class NotchGradientLoadingBarControllerTestCase: XCTestCase { // When notchGradientLoadingBarController.fadeIn(duration: 0) - let expectation = expectation(description: "Wait for view to appear.") - DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { - expectation.fulfill() - } - // Then - wait(for: [expectation], timeout: 1) - assertSnapshot(matching: rootViewController, as: .image(drawHierarchyInKeyWindow: true, precision: Config.precision)) }