Skip to content

Commit

Permalink
fix test__144__JWT_and_realtime__when_using_authUrl__when_token_expir…
Browse files Browse the repository at this point in the history
…es against frontdoor

test is over-specified - searching for exact error text.
Updated so test asserts that error text contains the words token and expire
  • Loading branch information
amnonbc committed Sep 17, 2024
1 parent 80f05fd commit c28a8f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Test/Tests/AuthTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit c28a8f8

Please sign in to comment.