From c28a8f8cd9cdc41932466a99cd663ee7c3cf7e67 Mon Sep 17 00:00:00 2001 From: amnon Date: Tue, 17 Sep 2024 06:58:08 +0100 Subject: [PATCH] fix test__144__JWT_and_realtime__when_using_authUrl__when_token_expires against frontdoor test is over-specified - searching for exact error text. Updated so test asserts that error text contains the words token and expire --- Test/Tests/AuthTests.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Test/Tests/AuthTests.swift b/Test/Tests/AuthTests.swift index 143fdb247..cd78d37b4 100644 --- a/Test/Tests/AuthTests.swift +++ b/Test/Tests/AuthTests.swift @@ -4159,7 +4159,8 @@ class AuthTests: XCTestCase { client.connection.once(.connected) { stateChange in client.connection.once(.disconnected) { stateChange in XCTAssertEqual(stateChange.reason?.code, ARTErrorCode.tokenExpired.intValue) - expect(stateChange.reason?.description).to(contain("Key/token status changed (expire)")) + expect(stateChange.reason?.description).to(contain("token")) + expect(stateChange.reason?.description).to(contain("expire")) done() } }