|
|
|
@ -80,7 +80,7 @@ struct SynchronizationTests { |
|
|
|
|
|
|
|
|
|
|
|
let eventCollection2: SyncedCollection<Event> = await self.secondStoreCenter.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
let eventCollection2: SyncedCollection<Event> = await self.secondStoreCenter.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
#expect(eventCollection2.hasLoaded == true) |
|
|
|
#expect(eventCollection2.hasLoaded == true) |
|
|
|
eventCollection2.clear() |
|
|
|
eventCollection2.reset() |
|
|
|
|
|
|
|
|
|
|
|
// cleanup sync residues |
|
|
|
// cleanup sync residues |
|
|
|
let _ = try await self.secondStoreCenter.testSynchronizeOnceAsync() |
|
|
|
let _ = try await self.secondStoreCenter.testSynchronizeOnceAsync() |
|
|
|
@ -121,13 +121,13 @@ struct SynchronizationTests { |
|
|
|
let eventCollectionA: SyncedCollection<Event> = await StoreCenter.main.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
let eventCollectionA: SyncedCollection<Event> = await StoreCenter.main.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
try await eventCollectionA.deleteAsync(contentOfs: Array(eventCollectionA)) |
|
|
|
try await eventCollectionA.deleteAsync(contentOfs: Array(eventCollectionA)) |
|
|
|
let eventCollectionB: SyncedCollection<Event> = await self.secondStoreCenter.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
let eventCollectionB: SyncedCollection<Event> = await self.secondStoreCenter.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
eventCollectionB.clear() |
|
|
|
eventCollectionB.reset() |
|
|
|
|
|
|
|
|
|
|
|
// Setup clubs collections |
|
|
|
// Setup clubs collections |
|
|
|
let clubCollectionA: SyncedCollection<Club> = await StoreCenter.main.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
let clubCollectionA: SyncedCollection<Club> = await StoreCenter.main.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
try await clubCollectionA.deleteAsync(contentOfs: Array(clubCollectionA)) |
|
|
|
try await clubCollectionA.deleteAsync(contentOfs: Array(clubCollectionA)) |
|
|
|
let clubCollectionB: SyncedCollection<Club> = await self.secondStoreCenter.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
let clubCollectionB: SyncedCollection<Club> = await self.secondStoreCenter.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
clubCollectionB.clear() |
|
|
|
clubCollectionB.reset() |
|
|
|
|
|
|
|
|
|
|
|
// cleanup sync residues |
|
|
|
// cleanup sync residues |
|
|
|
let _ = try await self.secondStoreCenter.testSynchronizeOnceAsync() |
|
|
|
let _ = try await self.secondStoreCenter.testSynchronizeOnceAsync() |
|
|
|
@ -185,7 +185,7 @@ struct SynchronizationTests { |
|
|
|
let teamRegColA: SyncedCollection<TeamRegistration> = await StoreCenter.main.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
let teamRegColA: SyncedCollection<TeamRegistration> = await StoreCenter.main.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
try await teamRegColA.deleteAsync(contentOfs: Array(teamRegColA)) |
|
|
|
try await teamRegColA.deleteAsync(contentOfs: Array(teamRegColA)) |
|
|
|
let teamRegColB: SyncedCollection<TeamRegistration> = await self.secondStoreCenter.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
let teamRegColB: SyncedCollection<TeamRegistration> = await self.secondStoreCenter.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
teamRegColB.clear() |
|
|
|
teamRegColB.reset() |
|
|
|
|
|
|
|
|
|
|
|
// cleanup sync residues |
|
|
|
// cleanup sync residues |
|
|
|
let _ = try await self.secondStoreCenter.testSynchronizeOnceAsync() |
|
|
|
let _ = try await self.secondStoreCenter.testSynchronizeOnceAsync() |
|
|
|
@ -213,7 +213,7 @@ struct SynchronizationTests { |
|
|
|
|
|
|
|
|
|
|
|
try await eventCollectionA.deleteAsync(contentOfs: Array(eventCollectionA)) |
|
|
|
try await eventCollectionA.deleteAsync(contentOfs: Array(eventCollectionA)) |
|
|
|
let eventCollectionB: SyncedCollection<Event> = await self.secondStoreCenter.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
let eventCollectionB: SyncedCollection<Event> = await self.secondStoreCenter.mainStore.asyncLoadingSynchronizedCollection() |
|
|
|
eventCollectionB.clear() |
|
|
|
eventCollectionB.reset() |
|
|
|
|
|
|
|
|
|
|
|
// cleanup sync residues |
|
|
|
// cleanup sync residues |
|
|
|
let _ = try await self.secondStoreCenter.testSynchronizeOnceAsync() |
|
|
|
let _ = try await self.secondStoreCenter.testSynchronizeOnceAsync() |
|
|
|
|