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() } }