-
Notifications
You must be signed in to change notification settings - Fork 178
Add unit test for MigrationStore #6495
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
Conversation
I think you hit the same issue ( |
REQUIRE(table_sub->name == sub_name); | ||
} | ||
|
||
TEST_CASE("Migration store", "[flx][migration]") { |
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.
since these are not integration tests and are logically separated from the rest of the tests, maybe they should be in their own file (i.e, migration_store_test.cpp)
@@ -116,7 +116,8 @@ bool MigrationStore::is_migrated() | |||
void MigrationStore::complete_migration() | |||
{ | |||
// Ensure the migration table has been initialized | |||
REALM_ASSERT(load_data()); | |||
bool loaded = load_data(); |
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.
good catch!
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
🚢 🇮🇹 |
What, How & Why?
Added unit test for the MigrationStore class to the flx_migration object store tests.
#6392
☑️ ToDos
[ ] C-API, if public C++ API changed.