RNET-1132: Add tests for sync schema migration (#3570) #2586
GitHub Actions / Results .NET Framework
failed
Apr 13, 2024 in 0s
Results .NET Framework ❌
❌ TestResults.Windows.xml
6162 tests were completed in 2054s with 6139 passed, 1 failed and 22 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Realm.Tests.exe.Realms.Tests.Sync.SyncMigrationTests. | 4✔️ | 1❌ | 18s |
❌ Realm.Tests.exe.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:42969/groups/661adff5aab1d59b01c86ef4/apps/661ae009aab1d59b01c870cb/logs?co_id=661aea4daab1d59b01ca3364"
✔️ Model_CanMigratePropertyOptionality
✔️ Model_CanRemoveField
✔️ SameRealm_CanBeMigratedSkippingVersions
✔️ SameRealm_CanBeMigratedThroughConsecutiveVersions
Annotations
Check failure on line -1 in No path available
github-actions / Results .NET Framework
Realm.Tests.exe.Realms.Tests.Sync.SyncMigrationTests. ► Realms.Tests.Sync.SyncMigrationTests ► Migration_FailsWithFutureVersion
Failed test found in:
TestResults.Windows.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:42969/groups/661adff5aab1d59b01c86ef4/apps/661ae009aab1d59b01c870cb/logs?co_id=661aea4daab1d59b01ca3364"
Raw output
at Realms.Tests.Sync.SyncMigrationTests.<<Migration_FailsWithFutureVersion>b__3_0>d.MoveNext() in D:\a\realm-dotnet\realm-dotnet\Tests\Realm.Tests\Sync\SyncMigrationTests.cs:line 256
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at TaskExtensions.<Timeout>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Realms.Tests.TestHelpers.<>c__DisplayClass33_0.<<RunAsyncTest>b__0>d.MoveNext() in D:\a\realm-dotnet\realm-dotnet\Tests\Realm.Tests\TestHelpers.cs:line 293
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
at Realms.Tests.Sync.SyncTestHelpers.RunBaasTestAsync(Func`1 testFunc, Int32 timeout) in D:\a\realm-dotnet\realm-dotnet\Tests\Realm.Tests\Sync\SyncTestHelpers.cs:line 87
Loading