RNET-1132: Add tests for sync schema migration (#3570) #2586
GitHub Actions / Results Xamarin.macOS
failed
Apr 13, 2024 in 0s
Results Xamarin.macOS ❌
❌ TestResults.XamarinMac.xml
6162 tests were completed in 1947s with 6139 passed, 1 failed and 22 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. | 4✔️ | 1❌ | 13s |
❌ Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests.
Realms.Tests.Sync.SyncMigrationTests
❌ Migration_FailsWithFutureVersion
Expected: String containing "schema version in BIND 3 is greater than latest schema version 2"
But was: "Client provided invalid schema version: client presented schema version "3" is greater than latest schema version "2" Logs: http://34.231.21.249:42978/groups/661adff47e312ccdc9fe86e6/apps/661ae0087e312ccdc9fe88a5/logs?co_id=661aea1b7e312ccdc9004d0f"
✔️ Model_CanMigratePropertyOptionality
✔️ Model_CanRemoveField
✔️ SameRealm_CanBeMigratedSkippingVersions
✔️ SameRealm_CanBeMigratedThroughConsecutiveVersions
Annotations
Check failure on line -1 in No path available
github-actions / Results Xamarin.macOS
Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. ► Realms.Tests.Sync.SyncMigrationTests ► Migration_FailsWithFutureVersion
Failed test found in:
TestResults.XamarinMac.xml
Error:
Expected: String containing "schema version in BIND 3 is greater than latest schema version 2"
But was: "Client provided invalid schema version: client presented schema version "3" is greater than latest schema version "2" Logs: http://34.231.21.249:42978/groups/661adff47e312ccdc9fe86e6/apps/661ae0087e312ccdc9fe88a5/logs?co_id=661aea1b7e312ccdc9004d0f"
Raw output
at Realms.Tests.Sync.SyncMigrationTests.<Migration_FailsWithFutureVersion>b__3_0 () [0x00088] in <c8a4c28f761d416b8525e9f2bbdd82de>:0
at TaskExtensions.Timeout (System.Threading.Tasks.Task task, System.Int32 millisecondTimeout, System.Threading.Tasks.Task errorTask, System.String detail) [0x00140] in <7692c036220a4619a3516354d6f91eda>:0
at Realms.Tests.TestHelpers+<>c__DisplayClass33_0.<RunAsyncTest>b__0 () [0x00079] in <c8a4c28f761d416b8525e9f2bbdd82de>:0
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <a98182632eb245adb24e66ecaa8eeab5>:0
at Nito.AsyncEx.AsyncContext+<>c__DisplayClass15_0.<Run>b__0 (System.Threading.Tasks.Task t) [0x0000b] in <ae3f77a0cc84476faeb835e8b2bfa4c2>:0
at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke () [0x00024] in <5372e8c744a84d00a7840d71d13951ed>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <5372e8c744a84d00a7840d71d13951ed>:0
--- End of stack trace from previous location where exception was thrown ---
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <a98182632eb245adb24e66ecaa8eeab5>:0
at Nito.AsyncEx.AsyncContext.Run (System.Func`1[TResult] action) [0x0006c] in <ae3f77a0cc84476faeb835e8b2bfa4c2>:0
at Realms.Tests.TestHelpers.RunAsyncTest (System.Func`1[TResult] testFunc, System.Int32 timeout, System.Threading.Tasks.Task errorTask) [0x00005] in <c8a4c28f761d416b8525e9f2bbdd82de>:0
at Realms.Tests.Sync.SyncTestHelpers.RunBaasTestAsync (System.Func`1[TResult] testFunc, System.Int32 timeout) [0x00042] in <c8a4c28f761d416b8525e9f2bbdd82de>:0
at Realms.Tests.Sync.SyncMigrationTests.Migration_FailsWithFutureVersion () [0x00000] in <c8a4c28f761d416b8525e9f2bbdd82de>:0
Loading