Skip to content

Commit

Permalink
changelog and fix test hang
Browse files Browse the repository at this point in the history
  • Loading branch information
jbreams committed May 23, 2022
1 parent 9f5e815 commit 4cefac0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* In RQL 'NONE x BETWEEN ...' and 'ANY x BETWEEN ...' had incorrect behavior, so it is now disallowed ([#5508](https://github.com/realm/realm-core/issues/5508), since v11.3.0)
* `SyncManager::path_for_realm` now allows custom file names for Flexible Sync enabled Realms. (Issue [#5473](https://github.com/realm/realm-core/issues/5473)).
* Fix ignoring ordering for queries passed into sync subscriptions in the C API. (Issue [#5504](https://github.com/realm/realm-core/issues/5504)).
* FLX sync will now ensure that a bootstrap from the server will only be applied if the entire bootstrap is received - ensuring there are no orphaned objects as a result of changing the read snapshot on the server ([#5331](https://github.com/realm/realm-core/pull/5331))

### Breaking changes
* None.
Expand Down
5 changes: 5 additions & 0 deletions test/object-store/sync/flx_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include "flx_sync_harness.hpp"
#include "realm/object-store/impl/object_accessor_impl.hpp"
#include "realm/object-store/impl/realm_coordinator.hpp"
#include "realm/object-store/schema.hpp"
#include "realm/object-store/sync/generic_network_transport.hpp"
#include "realm/object-store/sync/sync_session.hpp"
Expand Down Expand Up @@ -358,8 +359,12 @@ TEST_CASE("flx: interrupted bootstrap restarts/recovers on reconnect", "[sync][f
}

interrupted.get();
realm->sync_session()->shutdown_and_wait();
realm->close();
}

_impl::RealmCoordinator::clear_all_caches();

{
auto realm = DB::create(sync::make_client_replication(), interrupted_realm_config.path);
auto sub_store = sync::SubscriptionStore::create(realm, [](int64_t) {});
Expand Down

0 comments on commit 4cefac0

Please sign in to comment.