This commit is contained in:
Kenneth Geisshirt 2017-09-28 16:58:53 +02:00
parent 5dcd4ca28d
commit 3a88c943c6
1 changed files with 2 additions and 2 deletions

View File

@ -53,15 +53,15 @@ void delete_all_realms() {
} }
void clear_test_state() { void clear_test_state() {
// delete_all_realms();
#if REALM_ENABLE_SYNC #if REALM_ENABLE_SYNC
SyncManager& syncManagerShared = SyncManager::shared(); SyncManager& syncManagerShared = SyncManager::shared();
// for(auto &user : syncManagerShared.all_logged_in_users()) { // for(auto &user : syncManagerShared.all_logged_in_users()) {
// user->log_out(); // user->log_out();
// } // }
syncManagerShared.reset_for_testing(); SyncManager::shared().reset_for_testing();
// syncManagerShared.configure_file_system(default_realm_file_directory(), SyncManager::MetadataMode::NoEncryption); // syncManagerShared.configure_file_system(default_realm_file_directory(), SyncManager::MetadataMode::NoEncryption);
#endif #endif
delete_all_realms();
} }
std::string TypeErrorException::type_string(Property const& prop) std::string TypeErrorException::type_string(Property const& prop)