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)) }