Skip to content

Commit

Permalink
Merge pull request #7060 from sean-brandenburg/BAAS-21435-IQF-In-Migr…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
tkaye407 authored Oct 17, 2023
2 parents 82b8b21 + 191f4af commit 3618b2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/object-store/sync/flx_migration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ TEST_CASE("Test server migration and rollback", "[sync][flx][flx migration][baas
{
auto flx_table = flx_realm->read_group().get_table("class_Object");
auto mut_subs = flx_realm->get_latest_subscription_set().make_mutable_copy();
mut_subs.clear();
mut_subs.insert_or_assign(
"flx_migrated_Objects_2",
Query(flx_table).equal(flx_table->get_column_key("realm_id"), StringData{partition2}));
Expand All @@ -217,7 +218,7 @@ TEST_CASE("Test server migration and rollback", "[sync][flx][flx migration][baas
REQUIRE(!wait_for_download(*flx_realm));
wait_for_advance(*flx_realm);

check_data(flx_realm, true, true);
check_data(flx_realm, false, true);
}
}

Expand Down Expand Up @@ -757,7 +758,8 @@ TEST_CASE("New table is synced after migration", "[sync][flx][flx migration][baa
// Create a subscription for the new table.
auto table = flx_realm->read_group().get_table("class_Object2");
auto mut_subs = flx_realm->get_latest_subscription_set().make_mutable_copy();
mut_subs.insert_or_assign(Query(table));
mut_subs.insert_or_assign(Query(table).equal(table->get_column_key("realm_id"), StringData{partition}));

auto subs = std::move(mut_subs).commit();
subs.get_state_change_notification(sync::SubscriptionSet::State::Complete).get();

Expand Down

0 comments on commit 3618b2e

Please sign in to comment.