From 1a748244ea3fa245863f2fe53a4e4e6542ef440b Mon Sep 17 00:00:00 2001 From: Vladimir Espinola Date: Fri, 21 Jun 2024 15:56:58 -0400 Subject: [PATCH] updated method to check env variable --- Example/CreativeUITest/Protocols/BaseXCTestCase.swift | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Example/CreativeUITest/Protocols/BaseXCTestCase.swift b/Example/CreativeUITest/Protocols/BaseXCTestCase.swift index 61ff844..e9f21b8 100644 --- a/Example/CreativeUITest/Protocols/BaseXCTestCase.swift +++ b/Example/CreativeUITest/Protocols/BaseXCTestCase.swift @@ -58,14 +58,8 @@ extension BaseXCTestCase { /// Assert that the SMS app is opened with prepopulated text if running locally. (AWS Device Farm doesn't allow use of SMS apps). var canLaunchExternalApps: Bool { - let host = ProcessInfo + ProcessInfo .processInfo - .environment["COM_ATTENTIVE_EXAMPLE_HOST"] - - if host != "local" { - XCTFail("COM_ATTENTIVE_EXAMPLE_HOST is not for AWS Farm: \(host)") - } - - return host == "local" + .environment["COM_ATTENTIVE_EXAMPLE_HOST"] == "local" } }