-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix test__144__JWT_and_realtime__when_using_authUrl__when_token_expires against frontdoor #1974
Conversation
…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
WalkthroughThe pull request introduces modifications to the assertions in the Changes
Poem
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@amnonbc I thought I dealt with these types of tests in this SDK but perhaps not, none of them should assert on the error message, only the error code. I made similar changes in other SDKs, e.g.: |
If you look at this diff, I removed some error message checks on my branch, but I forgot to PR: |
It looks like these got fixed in b98ce6e |
@amnonbc is this intended for review or should it be a draft? |
It is intended for review. |
I’m assuming that some of the other test failures here also are from the time when sandbox WebSocket handling was through frontdoor (i.e. this Slack message)? I’ll re-run the tests to check they go away, and if so will merge. |
The current test is over-specified - searching for exact error text. Updated so test asserts that error text contains the words token and expire
Fixes
https://ably.atlassian.net/jira/software/projects/RAR/boards/159?selectedIssue=RAR-692
::error file=/Users/runner/work/ably-cocoa/ably-cocoa/Test/Tests/AuthTests.swift,line=4162:: test__144__JWT_and_realtime__when_using_authUrl__when_token_expires__receives_a_40142_error_from_the_server, expected to contain <Key/token status changed (expire)>, got <Error 40142 - Key/token status changed (token expired).
Summary by CodeRabbit