From fe076c9d869c5702070de34f60231858dbfcb29f Mon Sep 17 00:00:00 2001 From: richardshin Date: Wed, 25 May 2016 13:20:55 -0700 Subject: [PATCH] Fix flaky 3DS UI tests Demo app must be configured to use client token --- UITests/BraintreeThreeDSecure_UITests.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/UITests/BraintreeThreeDSecure_UITests.swift b/UITests/BraintreeThreeDSecure_UITests.swift index 42f9d92395..d39482cf31 100644 --- a/UITests/BraintreeThreeDSecure_UITests.swift +++ b/UITests/BraintreeThreeDSecure_UITests.swift @@ -34,6 +34,7 @@ class BraintreeThreeDSecure_UITests: XCTestCase { guard let clientToken = json["clientToken"] as? String else { return } dispatch_async(dispatch_get_main_queue(), { () -> Void in self.app.launchArguments.append("-EnvironmentSandbox") + self.app.launchArguments.append("-ClientToken") self.app.launchArguments.append("-Authorization:\(clientToken)") self.app.launchArguments.append("-Integration:BraintreeDemoThreeDSecureViewController") self.app.launch()