This commit is contained in:
Kenneth Geisshirt 2017-09-28 16:51:47 +02:00
parent 08acab63b7
commit 5dcd4ca28d

View File

@ -53,14 +53,14 @@ void delete_all_realms() {
} }
void clear_test_state() { void clear_test_state() {
delete_all_realms(); // 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(); syncManagerShared.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
} }