Skip to content

Collections of Mixed #2341

Collections of Mixed

Collections of Mixed #2341

GitHub Actions / Results Code Coverage failed Oct 3, 2023 in 1s

Results Code Coverage ❌

Tests failed

❌ TestResults.Linux.xml

5761 tests were completed in 1428s with 5740 passed, 7 failed and 14 skipped.

Test suite Passed Failed Skipped Time
Realm.Tests.dll.Realms.Tests.Database.InstanceTests. 52✔️ 1❌ 3s
Realm.Tests.dll.Realms.Tests.Database.MigrationTests. 13✔️ 5❌ 182ms
Realm.Tests.dll.Realms.Tests.Sync.FlexibleSyncTests.Results_Subscribe_FirstTimeOnly_DoesntWaitForChanges. 1✔️ 1❌ 6s

❌ Realm.Tests.dll.Realms.Tests.Database.InstanceTests.

Realms.Tests.Database.InstanceTests
  ✔️ BeginWrite_CalledMultipleTimes_Throws
  ✔️ Compact_WhenInTransaction_ShouldThrow
  ✔️ Compact_WhenOpenOnDifferentThread_ShouldReturnFalse
  ✔️ Compact_WhenOpenOnSameThread_ShouldReturnTrue
  ✔️ Compact_WhenResultsAreOpen_ShouldReturnFalse
  ✔️ DeleteRealmFailsIfOpenSameThread
  ✔️ DeleteRealmWorksIfCalledMultipleTimes
  ✔️ DeleteRealmWorksIfClosed
  ✔️ DeleteRealmWorksIfFolderDoesntExist
  ✔️ Dispose_WhenCalledMultipletimes_ShouldNotInvalidateOtherInstances
  ✔️ Dispose_WhenOnDifferentThread_ShouldNotInvalidateOtherInstances
  ✔️ Dispose_WhenOnTheSameThread_ShouldNotInvalidateOtherInstances
  ✔️ Freeze_FreezesTheRealm
  ✔️ FrozenRealm_CannotSubscribeForNotifications
  ✔️ FrozenRealm_CannotWrite
  ✔️ FrozenRealm_DoesntUpdate
  ✔️ FrozenRealms_CanBeUsedAcrossThreads
  ✔️ FrozenRealms_GetGarbageCollected
  ✔️ FrozenRealms_ReuseParentSchemaAndMetadata
  ✔️ GetCachedInstancesSameThread
  ✔️ GetInstance_WhenDynamic_ReadsSchemaFromDisk
  ✔️ GetInstance_WhenDynamicAndDoesntExist_ReturnsEmptySchema
  ❌ GetInstance_WhenIsDynamic_AndOSSchemaHasEmptyTable_DoesntThrow
	  Expected: No Exception to be thrown
	  But was:  <Realms.Exceptions.RealmException: Database has an unsupported version (9) and cannot be upgraded
	   at Realms.NativeException.ThrowIfNecessary()
	   at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
	   at Realms.RealmConfigurationBase.CreateRealm() in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Configurations/RealmConfigurationBase.cs:line 207
	   at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
	   at Realms.Tests.Database.InstanceTests.<>c__DisplayClass34_0.<GetInstance_WhenIsDynamic_AndOSSchemaHasEmptyTable_DoesntThrow>b__0() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 797
	   at InvokeStub_TestDelegate.Invoke(Object, Object, IntPtr*)
	   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
	--- End of stack trace from previous location ---
	   at NUnit.Framework.Internal.ExceptionHelper.Rethrow(Exception exception)
	   at NUnit.Framework.Internal.Reflect.DynamicInvokeWithTransparentExceptions(Delegate delegate)
	   at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>
	
  ✔️ GetInstance_WhenReadonly_TreatsAdditionalTablesAsEmpty
  ✔️ GetInstance_WithManualSchema_CanReadAndWrite
  ✔️ GetInstance_WithMixOfManualAndTypedSchema_CanReadAndWrite
  ✔️ GetInstance_WithTypedSchemaWithMissingProperties_ThrowsException
  ✔️ GetInstanceAsync_ExecutesMigrationsInBackground
  ✔️ GetInstanceShouldThrowWithBadPath
  ✔️ GetInstanceTest
  ✔️ GetInstanceWithJustFilenameTest
  ✔️ GetTwice_ReadOnlyInstance_DoesNotThrow
  ✔️ GetUniqueInstancesDifferentThreads
  ✔️ InstanceIsClosedByDispose
  ✔️ InstancesHaveDifferentHashes
  ✔️ IsInTransaction_WhenInvokedOnADifferentThread_Throws
  ✔️ Logger_ChangeLevel_ReflectedImmediately
  ✔️ ParallelOpen_DoesNotThrow
  ✔️ ReadOnlyInstance_ThrowsOnRefresh
  ✔️ Realm_Freeze_ReadOnly
  ✔️ Realm_Freeze_WhenFrozen_ReturnsSameInstance
  ✔️ Realm_HittingMaxNumberOfVersions_Throws
  ✔️ RealmChangedShouldFireForEveryInstance
  ✔️ RealmDispose_DisposesActiveTransaction
  ✔️ RealmObjectClassesOnlyAllowRealmObjects
  ✔️ RealmState_GetsGarbageCollected
  ✔️ RealmWithFrozenObjects_WhenDeleted_DoesNotThrow
  ✔️ RealmWithOneClassThrowsIfUseOther
  ✔️ RealmWithOneClassWritesDesiredClass
  ✔️ Transaction_PerformAction_WhenDisposed_Throws
  ✔️ TransactionStateIsCorrect
  ✔️ TransactionStateIsCorrectAsync
  ✔️ UsingDisposedRealm_ShouldThrowObjectDisposedException

❌ Realm.Tests.dll.Realms.Tests.Database.MigrationTests.

Realms.Tests.Database.MigrationTests
  ❌ ExceptionInMigrationCallback
	  Expected: <System.AggregateException>
	  But was:  <Realms.Exceptions.RealmException: Database has an unsupported version (9) and cannot be upgraded
	   at Realms.NativeException.ThrowIfNecessary()
	   at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
	   at Realms.RealmConfigurationBase.CreateRealm() in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Configurations/RealmConfigurationBase.cs:line 207
	   at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
	   at Realms.Tests.Database.MigrationTests.<>c__DisplayClass3_0.<ExceptionInMigrationCallback>b__0() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/MigrationTests.cs:line 127
	   at NUnit.Framework.Assert.Throws(IResolveConstraint expression, TestDelegate code, String message, Object[] args)>
	
  ✔️ Migration_ChangePrimaryKey_Dynamic
  ✔️ Migration_ChangePrimaryKey_Static
  ✔️ Migration_ChangePrimaryKey_WithDuplicates_Throws
  ✔️ Migration_ChangePrimaryKeyType
  ✔️ Migration_NewRealm_Remove
  ✔️ Migration_ToEmbedded_DeletesOrphans
  ✔️ Migration_ToEmbedded_DuplicatesObjects
  ✔️ Migration_WhenDone_DisposesAllObjectsAndLists
  ✔️ MigrationRemoveTypeInSchema
  ✔️ MigrationRemoveTypeInvalidArguments
  ✔️ MigrationRemoveTypeNotInSchema
  ❌ MigrationRenameProperty
	Realms.Exceptions.RealmException : Database has an unsupported version (9) and cannot be upgraded
  ❌ MigrationRenamePropertyErrors
	  Expected: <System.ArgumentException>
	  But was:  <Realms.Exceptions.RealmException: Database has an unsupported version (9) and cannot be upgraded
	   at Realms.NativeException.ThrowIfNecessary()
	   at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
	   at Realms.RealmConfigurationBase.CreateRealm() in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Configurations/RealmConfigurationBase.cs:line 207
	   at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
	   at Realms.Tests.Database.MigrationTests.<>c__DisplayClass6_0.<MigrationRenamePropertyErrors>b__0() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/MigrationTests.cs:line 228
	   at NUnit.Framework.Assert.Throws(IResolveConstraint expression, TestDelegate code, String message, Object[] args)>
	
  ❌ MigrationRenamePropertyInvalidArguments
	Realms.Exceptions.RealmException : Database has an unsupported version (9) and cannot be upgraded
  ✔️ MigrationTriggersDelete
  ❌ TriggerMigrationBySchemaEditing
	Realms.Exceptions.RealmException : Database has an unsupported version (9) and cannot be upgraded
  ✔️ TriggerMigrationBySchemaVersion

❌ Realm.Tests.dll.Realms.Tests.Sync.FlexibleSyncTests.Results_Subscribe_FirstTimeOnly_DoesntWaitForChanges.

Realms.Tests.Sync.FlexibleSyncTests
  ❌ Results_Subscribe_FirstTimeOnly_DoesntWaitForChanges("abc")
	  Expected: 1
	  But was:  2
	
  ✔️ Results_Subscribe_FirstTimeOnly_DoesntWaitForChanges(null)

Annotations

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

Realm.Tests.dll.Realms.Tests.Database.InstanceTests. ► Realms.Tests.Database.InstanceTests ► GetInstance_WhenIsDynamic_AndOSSchemaHasEmptyTable_DoesntThrow

Failed test found in:
  TestResults.Linux.xml
Error:
    Expected: No Exception to be thrown
    But was:  <Realms.Exceptions.RealmException: Database has an unsupported version (9) and cannot be upgraded
     at Realms.NativeException.ThrowIfNecessary()
     at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
     at Realms.RealmConfigurationBase.CreateRealm() in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Configurations/RealmConfigurationBase.cs:line 207
     at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
     at Realms.Tests.Database.InstanceTests.<>c__DisplayClass34_0.<GetInstance_WhenIsDynamic_AndOSSchemaHasEmptyTable_DoesntThrow>b__0() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 797
     at InvokeStub_TestDelegate.Invoke(Object, Object, IntPtr*)
     at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
  --- End of stack trace from previous location ---
     at NUnit.Framework.Internal.ExceptionHelper.Rethrow(Exception exception)
     at NUnit.Framework.Internal.Reflect.DynamicInvokeWithTransparentExceptions(Delegate delegate)
     at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>
  
Raw output
   at Realms.Tests.Database.InstanceTests.GetInstance_WhenIsDynamic_AndOSSchemaHasEmptyTable_DoesntThrow() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 795

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

Realm.Tests.dll.Realms.Tests.Database.MigrationTests. ► Realms.Tests.Database.MigrationTests ► ExceptionInMigrationCallback

Failed test found in:
  TestResults.Linux.xml
Error:
    Expected: <System.AggregateException>
    But was:  <Realms.Exceptions.RealmException: Database has an unsupported version (9) and cannot be upgraded
     at Realms.NativeException.ThrowIfNecessary()
     at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
     at Realms.RealmConfigurationBase.CreateRealm() in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Configurations/RealmConfigurationBase.cs:line 207
     at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
     at Realms.Tests.Database.MigrationTests.<>c__DisplayClass3_0.<ExceptionInMigrationCallback>b__0() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/MigrationTests.cs:line 127
     at NUnit.Framework.Assert.Throws(IResolveConstraint expression, TestDelegate code, String message, Object[] args)>
  
Raw output
   at Realms.Tests.Database.MigrationTests.ExceptionInMigrationCallback() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/MigrationTests.cs:line 127

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

Realm.Tests.dll.Realms.Tests.Database.MigrationTests. ► Realms.Tests.Database.MigrationTests ► MigrationRenameProperty

Failed test found in:
  TestResults.Linux.xml
Error:
  Realms.Exceptions.RealmException : Database has an unsupported version (9) and cannot be upgraded
Raw output
   at Realms.NativeException.ThrowIfNecessary()
   at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
   at Realms.RealmConfigurationBase.CreateRealm() in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Configurations/RealmConfigurationBase.cs:line 207
   at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
   at Realms.Tests.Database.MigrationTests.MigrationRenameProperty() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/MigrationTests.cs:line 209
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

Realm.Tests.dll.Realms.Tests.Database.MigrationTests. ► Realms.Tests.Database.MigrationTests ► MigrationRenamePropertyErrors

Failed test found in:
  TestResults.Linux.xml
Error:
    Expected: <System.ArgumentException>
    But was:  <Realms.Exceptions.RealmException: Database has an unsupported version (9) and cannot be upgraded
     at Realms.NativeException.ThrowIfNecessary()
     at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
     at Realms.RealmConfigurationBase.CreateRealm() in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Configurations/RealmConfigurationBase.cs:line 207
     at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
     at Realms.Tests.Database.MigrationTests.<>c__DisplayClass6_0.<MigrationRenamePropertyErrors>b__0() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/MigrationTests.cs:line 228
     at NUnit.Framework.Assert.Throws(IResolveConstraint expression, TestDelegate code, String message, Object[] args)>
  
Raw output
   at Realms.Tests.Database.MigrationTests.MigrationRenamePropertyErrors() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/MigrationTests.cs:line 228

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

Realm.Tests.dll.Realms.Tests.Database.MigrationTests. ► Realms.Tests.Database.MigrationTests ► MigrationRenamePropertyInvalidArguments

Failed test found in:
  TestResults.Linux.xml
Error:
  Realms.Exceptions.RealmException : Database has an unsupported version (9) and cannot be upgraded
Raw output
   at Realms.NativeException.ThrowIfNecessary()
   at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
   at Realms.RealmConfigurationBase.CreateRealm() in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Configurations/RealmConfigurationBase.cs:line 207
   at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
   at Realms.Tests.Database.MigrationTests.MigrationRenamePropertyInvalidArguments() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/MigrationTests.cs:line 300
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

Realm.Tests.dll.Realms.Tests.Database.MigrationTests. ► Realms.Tests.Database.MigrationTests ► TriggerMigrationBySchemaEditing

Failed test found in:
  TestResults.Linux.xml
Error:
  Realms.Exceptions.RealmException : Database has an unsupported version (9) and cannot be upgraded
Raw output
   at Realms.NativeException.ThrowIfNecessary()
   at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
   at Realms.RealmConfigurationBase.CreateRealm() in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Configurations/RealmConfigurationBase.cs:line 207
   at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
   at Realms.Tests.Database.MigrationTests.TriggerMigrationBySchemaEditing() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/MigrationTests.cs:line 103
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

Realm.Tests.dll.Realms.Tests.Sync.FlexibleSyncTests.Results_Subscribe_FirstTimeOnly_DoesntWaitForChanges. ► Realms.Tests.Sync.FlexibleSyncTests ► Results_Subscribe_FirstTimeOnly_DoesntWaitForChanges("abc")

Failed test found in:
  TestResults.Linux.xml
Error:
    Expected: 1
    But was:  2
  
Raw output
   at Realms.Tests.Sync.FlexibleSyncTests.<>c__DisplayClass76_0.<<Results_Subscribe_FirstTimeOnly_DoesntWaitForChanges>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/FlexibleSyncTests.cs:line 2220
--- End of stack trace from previous location ---
   at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Extensions/TaskExtensions.cs:line 70
   at Realms.Tests.TestHelpers.<>c__DisplayClass31_0.<<RunAsyncTest>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 266
--- End of stack trace from previous location ---
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)