|
|
|
|
@ -56,10 +56,13 @@ struct SynchronizationTests { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Cleanup |
|
|
|
|
let eventCollection1: SyncedCollection<Event> = StoreCenter.main.mainStore.registerSynchronizedCollection(synchronousLoading: true) |
|
|
|
|
let eventCollection1: SyncedCollection<Event> = await StoreCenter.main.mainStore.synchronizedCollectionWithFileLoading() |
|
|
|
|
#expect(eventCollection1.hasLoaded == true) |
|
|
|
|
|
|
|
|
|
await eventCollection1.deleteAsync(contentOfs: Array(eventCollection1)) |
|
|
|
|
|
|
|
|
|
let eventCollection2: SyncedCollection<Event> = self.secondStoreCenter.mainStore.registerSynchronizedCollection(synchronousLoading: true) |
|
|
|
|
let eventCollection2: SyncedCollection<Event> = await self.secondStoreCenter.mainStore.synchronizedCollectionWithFileLoading() |
|
|
|
|
#expect(eventCollection2.hasLoaded == true) |
|
|
|
|
eventCollection2.clear() |
|
|
|
|
|
|
|
|
|
// Create |
|
|
|
|
|