From bae48a2c9dbcfa9da48344f71f71a465bea6a61d Mon Sep 17 00:00:00 2001 From: Sebastian Villena <97059974+ruisebas@users.noreply.github.com> Date: Wed, 18 Oct 2023 17:03:40 -0400 Subject: [PATCH] chore: Fixing flaky auth test --- .../Support/AWSAuthCognitoSessionTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/Support/AWSAuthCognitoSessionTests.swift b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/Support/AWSAuthCognitoSessionTests.swift index a64581fa07..43db976492 100644 --- a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/Support/AWSAuthCognitoSessionTests.swift +++ b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/Support/AWSAuthCognitoSessionTests.swift @@ -211,7 +211,7 @@ class AWSAuthCognitoSessionTests: XCTestCase { XCTAssertEqual(session1, session2) XCTAssertEqual(session1.debugDictionary.count, session2.debugDictionary.count) - for key in session1.debugDictionary.keys { + for key in session1.debugDictionary.keys where (key != "AWS Credentials" && key != "cognitoTokens") { XCTAssertEqual(session1.debugDictionary[key] as? String, session2.debugDictionary[key] as? String) } }