-
Notifications
You must be signed in to change notification settings - Fork 31
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
tests: Don't assert connection key equality #675
Conversation
The format of the connection key is not public, and we reserve the right to change it server-side as we please, the only functionality the client expects is that providing the connection key of a previous connection results in the new connection having the same id, so that's all we need to test. Signed-off-by: Lewis Marshall <[email protected]>
WalkthroughThe pull request introduces extensive modifications to the integration tests in the Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)ably/realtime_conn_spec_integration_test.go (1)
Fix incorrect assertion comparing connection IDs The assertion on line 1950 compares Apply this diff to fix the assertion: - assert.Equal(t, prevConnId, c.Connection.ID(),
+ assert.Equal(t, prevConnId, client.Connection.ID(),
"expected the same connection")
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.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@sacOO7 please can you review this? |
Yes, will take a look soon 👍 |
It seems, there's one more test consistently failing
This test is causing job to run for ~2 hrs
Sometimes |
We never faced an issue like this before. |
@sacOO7 ok, but I think that's unrelated to this change, I think we should tackle the issues one at a time, the change here definitely fixes |
Sure, I will approve this PR. |
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.
LGTM.
Considering we will fix other failing tests soon 👍
The format of the connection key is not public, and we reserve the right to change it server-side as we please, the only functionality the client expects is that providing the connection key of a previous connection results in the new connection having the same id, so that's all we need to test.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation