Skip to content

Commit 79fbef8

Browse files
authored
Allow metadatabase to be attached in tests. (#393)
1 parent 3b57618 commit 79fbef8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/SQLiteData/CloudKit/SyncEngine.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
let containerIdentifier =
107107
containerIdentifier
108108
?? ModelConfiguration(groupContainer: .automatic).cloudKitContainerIdentifier
109-
?? (context == .preview ? "preview" : nil)
109+
?? (context != .live ? "container" : nil)
110110
var allTables: [any SynchronizableTable] = []
111111
var allPrivateTables: [any SynchronizableTable] = []
112112
for table in repeat each tables {
@@ -2212,7 +2212,7 @@
22122212
let containerIdentifier =
22132213
containerIdentifier
22142214
?? ModelConfiguration(groupContainer: .automatic).cloudKitContainerIdentifier
2215-
?? (context == .preview ? "preview" : nil)
2215+
?? (context != .live ? "container" : nil)
22162216

22172217
guard let containerIdentifier else {
22182218
throw SyncEngine.SchemaError.noCloudKitContainer

0 commit comments

Comments
 (0)