-
Notifications
You must be signed in to change notification settings - Fork 167
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
Bump the protocol version to v8 #6549
Changes from 3 commits
1bcc1c2
817d0a0
dc7117e
298065c
160d487
8223312
82bcec7
b691dbb
4f2117a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1588,6 +1588,13 @@ TEST_CASE("flx: writes work without waiting for sync", "[sync][flx][app]") { | |
}); | ||
} | ||
|
||
TEST_CASE("flx: verify PBS/FLX websocket protocol number and prefix", "[sync][flx]") { | ||
REQUIRE(8 == sync::get_current_protocol_version()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will break when we bump the version again. You should keep the initial assertion. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a check to verify that the current protocol version is not updated unexpectedly - I added comments around these to make sure they are updated when the protocol version is bumped. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, my point is that going forward the checks should still be valid unless we make other changes to the prefix and we should then assert on the new version. |
||
// This was updated in Protocol V8 to use '#' instead of '/' to support the Web SDK | ||
REQUIRE("com.mongodb.realm-sync#" == sync::get_pbs_websocket_protocol_prefix()); | ||
REQUIRE("com.mongodb.realm-query-sync#" == sync::get_flx_websocket_protocol_prefix()); | ||
} | ||
|
||
TEST_CASE("flx: subscriptions persist after closing/reopening", "[sync][flx][app]") { | ||
FLXSyncTestHarness harness("flx_bad_query"); | ||
SyncTestFile config(harness.app()->current_user(), harness.schema(), SyncConfig::FLXSyncEnabled{}); | ||
|
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.
I think this entry should be about the feature itself (not about enabling a feature) and also a proper link to the feature
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.
Unfortunately, there isn't an issue specifically for the feature, since github issues aren't created for epics. I can update the comment to reflect the feature, rather than just enabling it..
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.
Maybe @bmunkholm can work some magic