Fix sync test

sync3
Laurent 6 months ago
parent 02c56abf10
commit 77a035b643
  1. 7
      PadelClubDataTests/SynchronizationTests.swift

@ -56,10 +56,13 @@ struct SynchronizationTests {
} }
// Cleanup // 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)) 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() eventCollection2.clear()
// Create // Create

Loading…
Cancel
Save