-
Notifications
You must be signed in to change notification settings - Fork 56
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
Update expected error code in a test #1935
Conversation
Realtime is now returning 40101 (invalid credentials) when unable to extract an app ID from the key. The Realtime team have confirmed that this new behaviour is correct and that the test should be updated [1]. [1] https://ably-real-time.slack.com/archives/CURL4U2FP/p1733479167314059?thread_ts=1733420816.469159&cid=CURL4U2FP
WalkthroughThe changes in this pull request focus on refining the error handling logic within the test cases for the Ably Realtime library. Key modifications include updating expected error codes for connection failures due to invalid credentials, adjusting connection parameters for lifecycle testing with invalid hosts, and standardizing error codes for operations on failed channels. Additionally, timeout error handling has been improved for attaching to channels in a failed state. These updates ensure that the tests accurately reflect the expected behavior of the library under various failure conditions. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)test/realtime/failure.test.js (1)
The change from error code 40400 to 40101 correctly reflects the Realtime service's behavior when it fails to extract an app ID from the key. Let's verify that this error code is consistently used across the codebase: 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 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine with this, though if you're swapping to t40101 instead of just removing the assertion, bear in mind there's a chance that this will then fail again if we have to temporarily switch sandbox back to frontends handling websockets
Realtime is now returning 40101 (invalid credentials) when unable to extract an app ID from the key. The Realtime team have confirmed (internal Slack thread) that this new behaviour is correct and that the test should be updated.
Summary by CodeRabbit