diff --git a/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/AppTests.kt b/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/AppTests.kt index 6079e3edea..89376e8b61 100644 --- a/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/AppTests.kt +++ b/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/AppTests.kt @@ -386,7 +386,7 @@ class AppTests { // Create Realm in order to create the sync metadata Realm val user = app.asTestApp.createUserAndLogin() val syncConfig = SyncConfiguration - .Builder(user, setOf(ParentPk::class, ChildPk::class)) + .Builder(user, FLEXIBLE_SYNC_SCHEMA) .build() Realm.open(syncConfig).close() @@ -423,7 +423,7 @@ class AppTests { // Create Realm in order to create the sync metadata Realm val user = app.asTestApp.createUserAndLogin() val syncConfig = SyncConfiguration - .Builder(user, setOf(ParentPk::class, ChildPk::class)) + .Builder(user, FLEXIBLE_SYNC_SCHEMA) .build() Realm.open(syncConfig).close()