From d2485f6bc16c1beb3cacf51bfe8c76bc730cfcc3 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Sun, 3 Apr 2022 10:19:24 -0400 Subject: [PATCH] Rename var. --- Clocker/ClockerUnitTests/ClockerUnitTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Clocker/ClockerUnitTests/ClockerUnitTests.swift b/Clocker/ClockerUnitTests/ClockerUnitTests.swift index 669cb55..3328439 100644 --- a/Clocker/ClockerUnitTests/ClockerUnitTests.swift +++ b/Clocker/ClockerUnitTests/ClockerUnitTests.swift @@ -409,8 +409,8 @@ class ClockerUnitTests: XCTestCase { view.makeToast("Hello, this is a toast") XCTAssertEqual(view.subviews.first?.accessibilityIdentifier(), "ToastView") - let expectation = expectation(description: "Toast View should hide after 1 second") - let result = XCTWaiter.wait(for: [expectation], timeout: 1.5) // Set 2 seconds here for a little leeway + let toastExpectation = expectation(description: "Toast View should hide after 1 second") + let result = XCTWaiter.wait(for: [toastExpectation], timeout: 1.5) // Set 1.5 seconds here for a little leeway if result == XCTWaiter.Result.timedOut { XCTAssertTrue(view.subviews.isEmpty) }