Skip to content

Commit

Permalink
updated method to check env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Espinola committed Jun 21, 2024
1 parent ad50786 commit 1a74824
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Example/CreativeUITest/Protocols/BaseXCTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 1a74824

Please sign in to comment.