Skip to content

RNET-1132: Add tests for sync schema migration (#3570) #2586

RNET-1132: Add tests for sync schema migration (#3570)

RNET-1132: Add tests for sync schema migration (#3570) #2586

GitHub Actions / Results Maui.MacCatalyst failed Apr 13, 2024 in 0s

Results Maui.MacCatalyst ❌

Tests failed

❌ TestResults.MacCatalyst.xml

6144 tests were completed in 1981s with 6121 passed, 1 failed and 22 skipped.

Test suite Passed Failed Skipped Time
Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. 4✔️ 1❌ 14s

❌ 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:42963/groups/661adff65525cd28ab2285da/apps/661ae00c5525cd28ab22879c/logs?co_id=661aeacb5525cd28ab2452e6"
	
  ✔️ Model_CanMigratePropertyOptionality
  ✔️ Model_CanRemoveField
  ✔️ SameRealm_CanBeMigratedSkippingVersions
  ✔️ SameRealm_CanBeMigratedThroughConsecutiveVersions

Annotations

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Maui.MacCatalyst

Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. ► Realms.Tests.Sync.SyncMigrationTests ► Migration_FailsWithFutureVersion

Failed test found in:
  TestResults.MacCatalyst.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:42963/groups/661adff65525cd28ab2285da/apps/661ae00c5525cd28ab22879c/logs?co_id=661aeacb5525cd28ab2452e6"
  
Raw output
   at Realms.Tests.Sync.SyncMigrationTests.<Migration_FailsWithFutureVersion>b__3_0()
   at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail)
   at Realms.Tests.TestHelpers.<>c__DisplayClass33_0.<<RunAsyncTest>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
   at Nito.AsyncEx.AsyncContext.<>c__DisplayClass15_0.<Run>b__0(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object )