Skip to content

Fix list indexof, remove and contains #201

Fix list indexof, remove and contains

Fix list indexof, remove and contains #201

GitHub Actions / Unit Test Results - Android Base (Emulator) failed Feb 27, 2024 in 0s

900 passed, 1 failed and 41 skipped

Tests failed

❌ ./packages/test-base/build/outputs/androidTest-results/connected/TEST-test(AVD) - 13-_test-base-.xml

942 tests were completed in 382s with 900 passed, 1 failed and 41 skipped.

Test suite Passed Failed Skipped Time
io.realm.kotlin.test.android.InstrumentedTests 900✅ 1❌ 41⚪ 382s

❌ io.realm.kotlin.test.android.InstrumentedTests

✅ query_parseErrorThrows
✅ contextIsNotNull
✅ delete
✅ createAndUpdate
✅ query
✅ query_delete
io.realm.kotlin.test.android.MemoryTests
  ✅ garbageCollectorShouldFreeNativeResources
  ✅ releaseIntermediateVersions
  ✅ closeShouldFreeMemory
io.realm.kotlin.test.android.PlatformInfoTest
  ✅ platformInfo
io.realm.kotlin.test.android.RealmConfigurationTests
  ✅ testDispatcherAsWriteDispatcher
io.realm.kotlin.test.android.RealmTests
  ✅ closingRealmInsideWriteThrows
  ✅ writeBlockIngInsideWriteBlockingThrows
  ✅ closingRealmInsideWriteBlockingThrows
  ✅ writeBlockingInsideWriteThrows
io.realm.kotlin.test.common.BacklinksTests
  ✅ fieldNotInClass
  ✅ linkingNull
  ✅ classNotInSchema
  ✅ unmanaged_throws
  ✅ managed_multipleChildren
  ✅ dynamicWrongProperty_throws
  ✅ linkingEmbeddedObjects_namedLinkQueries
  ✅ deleteSourceObject
  ✅ query
  ✅ linkingObjects_namedQueries
  ✅ linkingObjects_namedQueriesRecursive
  ✅ deleteBacklinkResults
  ✅ managed_childrenDictionaryWithNullValues
  ✅ linkingFromEmbeddedObjects
  ✅ recursive
  ✅ managed_duplicateChildren
  ✅ dynamicMissingProperty_throws
  ✅ closingRealmInvalidatesBacklinks
  ✅ linkingEmbeddedObjects_unnamedLinkQueries
  ✅ dynamic
  ✅ embeddedBacklinks
io.realm.kotlin.test.common.BsonObjectIdTests
  ✅ boundaries
  ✅ queries
io.realm.kotlin.test.common.ByteArrayTests
  ✅ boundaries
  ✅ equals_assignedValues
  ✅ equals_defaultValues
  ✅ query_withByteArrayAsParameter
io.realm.kotlin.test.common.CompactOnLaunchTests
  ✅ compact_emptyRealm
  ✅ compactOnLaunch_defaultWhenEnabled
  ✅ compactOnLaunch_defaultConfiguration
  ✅ compact_populatedRealm
  ✅ defaultCallback_boundaries
  ✅ compact_encryptedRealm
  ✅ compact_throwsInCallback
io.realm.kotlin.test.common.CopyFromRealmTests
  ✅ depth_nullAfterDepthIsReached
  ✅ circularObjectGraph
  ✅ depth_primitiveListsAndSetsWhenDepthIsReached
  ✅ primitiveLists
  ✅ objectSet
  ✅ objectLists
  ✅ realmAny_realmObjectReferences
  ✅ linkingObjectsAreNotCopied
  ✅ realmAny_set_realmObjectReferences
  ✅ realmAny_list_realmObjectReferences
  ✅ embeddedObjectWithoutParent
  ✅ objectDictionary
  ✅ deletedObjectsAndCollections_throws
  ✅ objectsAtDifferentVersionsAreDifferentAfterCopy
  ✅ emptyCollection
  ✅ primitiveValues
  ✅ realmObjectReferences
  ✅ primitiveDictionaries
  ✅ realmResults
  ✅ embeddedObjectReferences
  ✅ embeddedObjectLists
  ✅ unmanagedObjectsAndCollections_throws
  ✅ primitiveSets
  ✅ realmAny_dictionary_realmObjectReferences
  ✅ closedObjectsAndCollections_throws
io.realm.kotlin.test.common.Decimal128Tests
  ✅ roundtripSpecialValues
io.realm.kotlin.test.common.EmbeddedRealmObjectTests
  ✅ list_addAllWithIndex
  ✅ copyToRealm_update_deleteReplacedObjects
  ✅ set_updatesExistingObjectInTree
  ✅ parentWrongType_throws
  ✅ deleteParentObject_deletesEmbeddedChildren_dictionary
  ✅ copyToRealm_tree_mixedRealmAndEmbeddedRealmObject_dictionary
  ✅ deleteParentEmbeddedRealmObject_deletesEmbeddedChildren_list
  ✅ parent
  ✅ set_unmanaged
  ✅ copyToRealm_child
  ✅ list_addWithIndex
  ✅ list_addAll
  ✅ copyToRealm_childList
  ✅ setWillDeleteEmbeddedRealmObject
  ✅ set_managed
  ✅ deleteParentEmbeddedRealmObject_deletesEmbeddedChildren_dictionary
  ✅ copyToRealm_withInitializer
  ✅ deleteParentObject_deletesEmbeddedChildren_list
  ✅ list_add
  ✅ list_set
  ✅ copyToRealm_tree_mixedRealmAndEmbeddedRealmObject_list
  ✅ dictionary_putAll
  ✅ dictionary_put
io.realm.kotlin.test.common.EncryptionTests
  ✅ openEncryptedRealm
  ✅ openEncryptedRealmWithWrongKey
  ✅ openUnencryptedRealmWithEncryptionKey
io.realm.kotlin.test.common.FqNameImportTests
  ✅ import
io.realm.kotlin.test.common.GeoSpatialTests
  ✅ geoPoint_invalidArgsThrows
  ✅ geoPolygon_within
  ✅ distance_invalidValueThrows
  ✅ geoBox
  ✅ distance_conversions
  ✅ geoCircle_toString
  ✅ distance_miles
  ✅ geoBox_within
  ✅ geoPolygon_toString
  ✅ distance_kilometer
  ✅ geoCircle
  ✅ geoPolygon_invalidShapesThrows
  ✅ asQueryArguments
  ✅ distance_radians
  ✅ geoCircle_invalidArgsThrows
  ✅ distance_degrees
  ✅ geoBox_toString
  ✅ geoPoint
  ✅ geoCircle_within
io.realm.kotlin.test.common.ImportTests
  ✅ importPrimitiveDefaults
  ✅ importOutdatedReferenceThrows
  ✅ importByAssignmentToManaged
  ✅ importUnmanagedCyclicHierarchy
  ✅ importRealmAnyWithUnmanagedObject
  ✅ importRealmAnyToManagedObjectWithUnmanagedObject
  ✅ importUnmanagedHierarchy
  ✅ updateImportedHierarchy
  ✅ importAlreadyManagedIsNoop
io.realm.kotlin.test.common.InitialDataTests
  ✅ initialData_triggersWhenMigrationDeletesFile
  ✅ initialData_errorFailsToOpenRealm
  ✅ initialData_failureDeletesRealm
  ✅ initialData_triggerWhenFileIsDeleted
  ✅ initialData_runOnlyOncePrFile
  ✅ initialData_runOnWriterThread
  ✅ initialData_defaultConfiguration
io.realm.kotlin.test.common.LinkTests
  ✅ basics
io.realm.kotlin.test.common.MigrationTests
  ✅ automaticMigrationRemovingClasses
  ✅ resetFileShouldNotDeleteWhenRemovingClass
  ✅ automaticBacklinkHandling_cloneDuplicateReferences
  ✅ resetFileShouldTriggerWhenAddingClass
  ✅ automaticMigrationAddingNewClasses
  ✅ migrationThrowsOnViolatingEmbeddedObjectConstraints
  ✅ automaticBacklinkHandling_deleteOrphanedChildren
io.realm.kotlin.test.common.MutableRealmIntTests
  ✅ managed_increment
  ✅ unmanaged_decOperator
  ✅ unmanaged_timesOperator
  ✅ managed_or
  ✅ unmanaged_unaryMinusOperator
  ✅ managed_incOperator
  ✅ unmanaged_plusOperator
  ✅ managed_plusOperator
  ✅ managed_timesOperator
  ✅ unmanaged_unaryPlusOperator
  ✅ managed_unaryPlusOperator
  ✅ managed_setOutsideTransactionThrows
  ✅ unmanaged_minusOperator
  ✅ unmanaged_ushr
  ✅ managed_deleteParentObjectInvalidatesInstance
  ✅ managed_unaryMinusOperator
  ✅ managed_equality
  ✅ unmanaged_compareTo
  ✅ managed_decrement
  ✅ unmanaged_increment
  ✅ managed_and
  ✅ managed_inv
  ✅ managed_set
  ✅ managed_shl
  ✅ managed_shr
  ✅ managed_xor
  ✅ unmanaged_incOperator
  ✅ managed_divOperator
  ✅ unmanaged_or
  ✅ managed_incrementOutsideTransactionThrows
  ✅ managed_boundaries
  ✅ managed_remOperator
  ✅ managed_minusOperator
  ✅ managed_nullability
  ✅ managed_ushr
  ✅ managed_shareValueAcrossInstances
  ✅ managed_decOperator
  ✅ unmanaged_and
  ✅ unmanaged_inv
  ✅ unmanaged_set
  ✅ unmanaged_shl
  ✅ unmanaged_shr
  ✅ unmanaged_xor
  ✅ managed_accessors
  ✅ unmanaged_divOperator
  ✅ unmanaged_boundaries
  ✅ unmanaged_decrement
  ✅ unmanaged_equality
  ✅ unmanaged_remOperator
  ✅ unmanaged_nullability
  ✅ unmanaged_shareValueAcrossInstances
  ✅ managed_compareTo
io.realm.kotlin.test.common.MutableRealmTests
  ✅ findLatest_identityForLiveObject
  ✅ findLatest_updated
  ✅ copyToRealm_updatePolicy_all_allTypes
  ✅ copyToRealm_listElements_updatePolicy_all
  ✅ cancelingWrite
  ✅ delete_realmQuery
  ✅ findLatest_unmanagedThrows
  ✅ delete_realmList
  ✅ set_throwsOnManagedObjectFromDifferentVersion
  ✅ set_updatesExistingObjectInTree
  ✅ delete
  ✅ copyToRealm_listElements_updatePolicy_error
  ✅ delete_realmSingleQuery
  ✅ copyToRealm_throwsOnManagedObjectFromDifferentVersion
  ✅ set_throwWithDeletedObject
  ✅ delete_nonExistingClassThrows
  ✅ deleteAll
  ✅ findLatest_deleted
  ✅ copytToRealm_existingListIsFlushed_realmObject
  ✅ copyToRealm_throwsWithDeletedObject
  ✅ delete_deletedObjectThrows
  ✅ deleteAll_onlyDeletesCurrentSchema
  ✅ copyToRealm_updatePolicy_error_withDefaults
  ✅ findLatest_basic
  ✅ delete_frozenObjectsThrows
  ✅ copytToRealm_existingListIsFlushed_primitiveType
  ✅ delete_unmanagedObjectsThrows
  ✅ writeReturningUnmanaged
  ✅ delete_realmObject
  ✅ delete_realmResult
  ✅ copyToRealm_updatePolicy_error_throwsOnDuplicatePrimaryKey
  ✅ copyToRealm_updatePolicy_all_cyclicObject
  ✅ copyToRealm_updatePolicy_all_realmJavaBug4957
  ✅ copyToRealm_updatePolicy_all_nonPrimaryKeyField
  ✅ findLatest_inLongHistory
  ✅ copyToRealm_updatePolicy_all
  ✅ cancellingWriteTwiceThrows
io.realm.kotlin.test.common.NullabilityTests
  ✅ nullability
  ✅ safeNullGetterAndSetter
io.realm.kotlin.test.common.ObjectIdTests
  ✅ equals
  ✅ boundaries
  ✅ invalid_arguments
  ✅ queries
  ✅ compare
  ✅ to_String
io.realm.kotlin.test.common.PersistedNameTests
  ✅ dynamicRealmQuery_getValueByPersistedName
  ✅ aggregators_byPersistedName
  ✅ query_byPrimaryKeyPublicName
  ✅ query_byEmojiPersistedName
  ✅ backlinkQueryOnPersistedClassName
  ✅ schemaWithOverlappingClassNamesThrow
  ✅ query_byPersistedName
  ✅ schema_propertyUsesPersistedName
  ✅ backlinks_canPointToPersistedName
  ✅ backlinks_canBeQueriedWithPersistedName
  ✅ schema_changingPersistedName_triggersMigration
  ✅ query_byPrimaryKeyPersistedName
  ✅ query_byPublicName
  ✅ persistedName_on_objectLink
  ✅ aggregators_byPublicName
  ✅ schema_changingPublicName_doesNotTriggerMigration
  ✅ dynamicRealmSchema_propertyUsesPersistedName
io.realm.kotlin.test.common.PrimaryKeyTests
  ✅ duplicateNullPrimaryKeyThrows
  ✅ string
  ✅ duplicatePrimaryKeyThrows
  ✅ testPrimaryKeyForAllSupportedTypes
  ✅ verifyPrimaryKeyTypeSupport
  ✅ updateWithDuplicatePrimaryKeyThrows
  ✅ nullPrimaryKey
io.realm.kotlin.test.common.QueryTests
  ✅ max_find_emptyTable
  ✅ verifySupportedMinAggregators
  ✅ find_mutableRealm_malformedQueryThrows
  ✅ playground_multiThreadScenario
  ✅ max_asFlow_throwsInsideWrite
  ⚪ average_generic_asFlow_throwsIfInvalidProperty
  ✅ max_find_allNullValues
  ✅ sum_asFlow_throwsInsideWrite
  ✅ count_asFlow_cancel
  ✅ count_asFlow_initialValue
  ✅ sum_find
  ✅ description
  ✅ sort_throwsIfInvalidProperty
  ⚪ average_double_emptyColumns
  ✅ count_asFlow_deleteObservable
  ⚪ average_generic_asFlow_throwsIfInvalidType
  ✅ distinct_throwsIfInvalidProperty
  ✅ asFlow
  ✅ min_find
  ✅ sum_find_byteOverflow
  ✅ query_wrongArgumentTypeThrows
  ⚪ average_double_asFlow
  ✅ min_find_doublePropertyCoercedCorrectly
  ✅ sum_throwsIfInvalidProperty
  ✅ sum_find_allNullValues
  ✅ keyPath_usingWildCards
  ✅ asFlow_initialResults
  ✅ count_find
  ✅ composedQuery_withDescriptorsAndQueryAgain
  ✅ min_asFlow
  ✅ verifyMinMaxAggragatorSupport
  ✅ min_throwsIfInvalidProperty
  ✅ asFlow_deleteObservable
  ✅ first_asFlow_cancel
  ✅ first_asFlow
  ✅ composedQuery_withDescriptors
  ✅ query_inListArgument_escapedString
  ✅ min_find_allNullValues
  ✅ sum_find_doublePropertyCoercedCorrectly
  ✅ max_throwsIfInvalidProperty
  ✅ min_find_intPropertyCoercedCorrectly
  ✅ fullTextSearch
  ✅ verifySupportedSumAggregators
  ✅ count_find_emptyTable
  ✅ first_find
  ⚪ average_generic_find_throwsIfInvalidType
  ⚪ average_double_asFlow_throwsIfInvalidType
  ✅ find_mutableRealm
  ✅ composedQuery_withDescriptor
  ✅ sort_emptyTable
  ✅ limit
  ✅ sum_asFlow
  ✅ distinct
  ✅ fullTextSearch_invalidArguments
  ✅ max_find
  ✅ max_find_intPropertyCoercedCorrectly
  ✅ find_realm
  ✅ count_asFlow_throwsInsideWrite
  ✅ first_find_emptyTable
  ✅ query_typesAreConvertedCorrectly
  ⚪ average_generic_asFlow
  ✅ fullTextSearch_onNonFullTextFieldThrows
  ✅ query_missingArgumentThrows
  ✅ sum_throwsIfRealmInstant
  ✅ asFlow_results_withKeyPath
  ✅ list_query
  ✅ dictionary_query
  ✅ query_inListArgument_string
  ✅ max_asFlow
  ✅ limit_throwsIfInvalidValue
  ✅ query_inListArgument_boolean
  ✅ set_query
  ✅ sum_find_emptyTable
  ✅ asFlow_objectBound_withKeyPath
  ⚪ average_generic_find
  ✅ sum_find_floatPropertyCoercedCorrectly
  ✅ find_realm_malformedQueryThrows
  ✅ sum_find_intPropertyCoercedCorrectly
  ✅ sort_multipleFields
  ✅ min_asFlow_throwsInsideWrite
  ✅ query_inListArgument_mixedCollectionTypes
  ⚪ average_double_find_throwsIfInvalidProperty
  ✅ count_asFlow
  ✅ query_inListArgument_links
  ✅ sort_realmAny
  ⚪ average_double_find
  ✅ sum_find_shortOverflow
  ⚪ average_generic_emptyColumns
  ⚪ average_asFlow_throwsInsideWrite
  ✅ composedQuery
  ✅ asFlow_throwsInsideWrite
  ✅ verifySupportedMaxAggregators
  ✅ sort_singleField
  ✅ max_find_floatPropertyCoercedCorrectly
  ✅ max_find_doublePropertyCoercedCorrectly
  ✅ min_find_floatPropertyCoercedCorrectly
  ✅ distinct_multipleFields
  ✅ min_find_emptyTable
io.realm.kotlin.test.common.ReadMeTests
  ✅ notifications_realmList
  ✅ delete
  ✅ notifications_realmQuery
  ✅ notifications_realmObject
  ✅ notifications_realmSingleQuery
  ✅ query
  ✅ notifications_realm
io.realm.kotlin.test.common.RealmAnyNestedCollectionTests
  ✅ listInRealmAny_copyToRealm
  ✅ nestedCollectionsInList_copyToRealm
  ✅ nestedCollectionsInList_set_invalidatesOldElement
  ✅ nestedCollectionsInList_add
  ✅ nestedCollectionsInList_set
  ✅ dictionaryInRealmAny_values
  ❌ query
	java.util.NoSuchElementException: List is empty.
  ✅ nestedCollectionsInDictionary_put_invalidatesOldElement
  ✅ dictionaryInRealmAny_copyToRealm
  ✅ updateMixed_invalidatesOldElement
  ✅ query_ThrowsOnNestedCollectionArguments
  ✅ dictionaryInRealmAny_put
io.realm.kotlin.test.common.RealmAnyTests
  ✅ unmanaged_asRealmObjectWrongCastThrows
  ✅ managed_asRealmObjectThrowsForDynamicRealmObject
  ✅ managed_asRealmObjectWrongCastThrows
  ✅ unmanaged_incorrectTypeThrows
  ✅ managed_numericOverflow
  ✅ equals
  ✅ unmanaged_allTypes
  ✅ missingClassFromSchema_managedThrows
  ✅ managed_coreIntValuesAreTheSame
  ✅ managed_updateThroughAllTypes
  ✅ unmanaged_coreIntValuesAreTheSame
  ✅ managed_deleteObjectInsideRealmAnyTriggersUpdateInContainer
  ✅ importWithDuplicateReference
  ✅ managed_deletedObject
  ✅ embeddedObject_worksInsideParent
  ✅ managed_incorrectTypeThrows
  ✅ missingClassFromSchema_unmanagedWorks
  ✅ unmanaged_numericOverflow
  ✅ missingNewClassInOlderSchema_throws
io.realm.kotlin.test.common.RealmConfigurationTests
  ✅ deleteRealmIfMigrationNeeded
  ✅ assetFile_throwsOnEmptyFilename
  ✅ directory_createIntermediateDirs
  ✅ notificationDispatcherRealmConfigurationBuilder
  ✅ directory_isFileThrows
  ✅ realmConfigurationAsConfiguration
  ✅ wrongEncryptionKeyThrowsIllegalArgumentException
  ✅ directory
  ✅ defaultSchemaVersionNumber
  ✅ assetFile_throwsIfDeleteRealmIfMigrationNeeded
  ✅ migration
  ✅ notificationDispatcherRealmConfigurationDefault
  ✅ defaultName
  ✅ defaultPath
  ✅ writesExecutesOnWriteDispatcher
  ✅ defaultLogLevel
  ✅ maxNumberOfActiveVersionsThrowsIfZeroOrNegative
  ✅ directory_endsWithSeparator
  ✅ notificationDispatcherRealmConfigurationBuilderDefault
  ✅ writeDispatcherRealmConfigurationBuilderDefault
  ✅ encryptionKey
  ✅ name
  ✅ with
  ✅ assetFile_throwsIfInMemory
  ✅ defaultDeleteRealmIfMigrationNeeded
  ✅ defaultEncryptionKey
  ✅ name_startsWithSeparator
  ✅ directory_withSpace
  ✅ writeDispatcherRealmConfigurationBuilder
  ✅ directoryAndNameCombine
  ✅ durability
  ✅ assetFile_defaultIsNull
  ✅ logLevelDoesNotGetOverwrittenByConfig
  ✅ defaultMaxNumberOfActiveVersions
  ✅ name_withSpace
  ✅ customLoggers
  ✅ maxNumberOfActiveVersions
  ✅ schemaVersionNumber
  ✅ defaultCustomLoggers
  ✅ schemaInExternalVariable
  ✅ assetFile_roundTrip
  ✅ writeDispatcherRealmConfigurationDefault
  ✅ logLevel
io.realm.kotlin.test.common.RealmDictionaryTests
  ⚪ managedDictionary_hashCode
  ✅ values_retainAll
  ✅ containsValue
  ✅ entries_add
  ✅ unmanaged_realmDictionaryMutableEntry_equals
  ✅ copyToRealm
  ✅ realmDictionaryInitializer_toRealmDictionary
  ✅ unmanaged
  ✅ queryOnCollectionAsFlow_throwsOnInsufficientBuffers
  ✅ accessors_getter_defaultValue_RealmAny_object
  ✅ values_iteratorRemove
  ✅ accessors_setter_primitive
  ⚪ values_hashCode
  ✅ accessors_setter_realmAny_object
  ⚪ keys_equals
  ✅ keys_addThrows
  ✅ keys_size
  ✅ entries_removeAll
  ✅ unmanagedDictionary_toString
  ⚪ values_equals
  ✅ entries_iteratorConcurrentModification
  ✅ accessors_getter_defaultValue_primitive
  ✅ entries_iteratorNext
  ✅ nestedObjectTest
  ✅ accessors_getter_defaultValue_RealmAny_primitive
  ✅ values_iteratorConcurrentModification
  ⚪ entries_hashCode
  ✅ entries_clear
  ✅ collectionAsFlow_completesWhenParentIsDeleted
  ✅ values_remove
  ✅ values_addThrows
  ⚪ keys_hashCode
  ✅ query_throwsOnSyntaxError
  ✅ values_iteratorNext
  ✅ unmanagedDictionary_equals
  ✅ entries_size
  ✅ query_throwsOnClosedCollection
  ✅ get
  ✅ put
  ✅ keys
  ✅ clear
  ✅ entries_addAll
  ✅ containsKey
  ✅ queryOnCollectionAsFlow_completesWhenParentIsDeleted
  ✅ managedDictionary_toString
  ⚪ entries_equals
  ✅ query_throwsOnDeletedCollection
  ✅ entries_iteratorRemove
  ✅ query_embeddedObjectCollection
  ✅ entries_remove
  ✅ accessors_setter_object
  ✅ values_clear
  ✅ values_removeAll
  ✅ contains_unmanagedArgs
  ✅ unmanagedDictionary_hashCode
  ✅ values_toString
  ✅ realmDictionaryInitializer_realmDictionaryOf_fromCollection
  ✅ realmMapEntryOf
  ✅ keys_iteratorNext
  ✅ query_objectCollection
  ✅ keys_iteratorRemove
  ✅ accessors_getter_defaultValue_object
  ✅ closedRealm_readFails
  ⚪ managedDictionary_equals
  ✅ entries_iteratorNext_managedEntry_setValue
  ✅ keys_iteratorConcurrentModification
  ✅ realmDictionaryInitializer_realmDictionaryOf_fromVarargs
  ✅ queryOnCollectionAsFlow_backpressureStrategyDoesNotRuinInternalLogic
  ✅ query_throwsOnUnmanagedCollection
  ✅ entries_toString
  ✅ keys_toString
  ✅ accessors_setter_realmAny_primitive
io.realm.kotlin.test.common.RealmInMemoryTests
  ✅ inMemoryRealm_delete
  ✅ inMemoryRealm_withDifferentNames
  ✅ inMemoryRealm_noExistingFileAfterDelete
  ✅ multiThread
  ✅ inMemoryRealm_writeCopyTo
  ✅ writeCopyToInTransaction
  ✅ inMemoryRealm_wipedOnClose
io.realm.kotlin.test.common.RealmInstantTests
  ✅ equals
  ✅ timestamp_toString
  ✅ now
  ✅ nanosConversions
  ✅ compare
  ✅ mismatchingSign_throws
  ✅ timestamp_boundaries
  ✅ timestamp_hashCode
  ✅ millisConversions
io.realm.kotlin.test.common.RealmListTests
  ✅ remove_unmanagedArgs
  ✅ copyToRealm
  ✅ realmListInitializer_toRealmList
  ✅ getFailsIfClosed
  ✅ unmanaged
  ✅ queryOnCollectionAsFlow_throwsOnInsufficientBuffers
  ✅ add_detectsDuplicates
  ✅ addWithIndex_detectsDuplicates
  ✅ realmListInitializer_realmListOf
  ⚪ clearFailsIfClosed
  ✅ addAll_detectsDuplicates
  ✅ listNotifications
  ✅ unmanagedRealmList_equalsHash
  ✅ remove
  ✅ nestedObjectTest
  ✅ collectionAsFlow_completesWhenParentIsDeleted
  ✅ removeAt
  ✅ unmanagedRealmList_toString
  ✅ query_throwsOnSyntaxError
  ✅ addAllWithIndex
  ✅ query_throwsOnClosedCollection
  ✅ add
  ✅ get
  ✅ set
  ✅ clear
  ✅ queryOnCollectionAsFlow_completesWhenParentIsDeleted
  ⚪ addWithIndexFailsIfClosed
  ✅ query_throwsOnDeletedCollection
  ⚪ addAllWithIndexFailsIfClosed
  ✅ query_embeddedObjectCollection
  ⚪ setFailsIfClosed
  ⚪ removeAtFailsIfClosed
  ✅ addWithIndex
  ✅ contains_unmanagedArgs
  ✅ assign_updateExistingObjects
  ✅ set_detectsDuplicates
  ✅ query_objectCollection
  ✅ queryOnCollectionAsFlow_backpressureStrategyDoesNotRuinInternalLogic
  ✅ assignField
  ✅ query_throwsOnUnmanagedCollection
io.realm.kotlin.test.common.RealmLogTests
  ✅ addDefaultSystemLogger_failure
  ✅ removeAll_success
  ✅ removeAll_falseIfNoLoggerWereRemoved
  ✅ smallLogEntryWithArgs
  ✅ logException
  ✅ longLogEntry
  ✅ smallLogEntry
  ✅ logExceptionWithMessage
  ✅ addLogger
  ✅ customLogger
  ✅ ignoreEventsLowerThanLogLevel
  ✅ removeLogger_falseForNonExistingLogger
  ✅ longLogEntryWithArgs
  ✅ addDefaultSystemLogger_success
  ✅ removeLogger_success
  ✅ addLogger_twice
io.realm.kotlin.test.common.RealmObjectTests
  ✅ toString_managed_closedRealm
  ✅ equals_hashCode_customMethod
  ✅ version_throwsIfRealmIsClosed
  ✅ equals_hashCode_unmanaged
  ✅ toString_unmanaged
  ✅ equals_hashCode_mixed
  ✅ isFrozen
  ✅ version
  ✅ toString_managed_cyclicData
  ✅ toString_managed_invalid
  ✅ toString_managed
  ✅ equals_hashCode_managed_invalid
  ✅ toString_customMethod
  ✅ equals_hashCode_managed_cyclicData
  ✅ isFrozen_throwsOnUnmanagedObject
  ✅ observeWhenObjectIsDeleted
  ✅ equals_hashCode_managed
  ✅ isValid
io.realm.kotlin.test.common.RealmResultsTests
  ✅ versionThrowsIfRealmIsClosed
  ✅ query
  ✅ version
  ✅ query_returnBackingQuery
  ✅ query_throwsIfOnlyArgs
io.realm.kotlin.test.common.RealmSchemaTests
  ✅ realmProperty
  ✅ realmClass
  ✅ realmClass_notFound
  ✅ realmClass_persistedName
  ✅ multipleConstructors
  ✅ schema_optionCoverage
  ✅ schemaChanged
  ✅ realmProperty_notFound
io.realm.kotlin.test.common.RealmSetTests
  ✅ copyToRealm
  ✅ unmanaged
  ✅ iterator_hasNext
  ✅ setNotifications
  ✅ queryOnCollectionAsFlow_throwsOnInsufficientBuffers
  ✅ add_detectsDuplicates
  ✅ iterator_failsIfRealmClosed
  ✅ addAll_detectsDuplicates
  ✅ remove
  ✅ iterator_remove
  ✅ iterator_next
  ✅ nestedObjectTest
  ✅ contains
  ✅ collectionAsFlow_completesWhenParentIsDeleted
  ✅ query_throwsOnSyntaxError
  ✅ dontImportUnmanagedArgsToNonImportingMethods
  ✅ query_throwsOnClosedCollection
  ✅ add
  ✅ unmanagedRealmSet_toString
  ✅ realmSetInitializer_realmSetOf
  ✅ clear
  ✅ queryOnCollectionAsFlow_completesWhenParentIsDeleted
  ✅ realmSetInitializer_toRealmSet
  ✅ query_throwsOnDeletedCollection
  ✅ unmanagedRealmSet_equalsHash
  ✅ assign_updateExistingObjects
  ✅ iterator_concurrentModification
  ✅ iterator
  ✅ query_objectCollection
  ✅ removeAll
  ✅ queryOnCollectionAsFlow_backpressureStrategyDoesNotRuinInternalLogic
  ✅ query_throwsOnUnmanagedCollection
io.realm.kotlin.test.common.RealmTests
  ✅ initialRealmFile_throwsWithSyncInitialRealmFile
  ✅ versionThrowsIfRealmIsClosed
  ✅ writeCopyTo_destinationAlreadyExist_throws
  ⚪ throwsIfMaxNumberOfActiveVersionsAreExceeded
  ✅ numberOfActiveVersions
  ✅ writeAfterCloseThrows
  ✅ writeAfterCoroutineCancel
  ✅ writeCopyTo_localEncryptedToLocal
  ✅ versionDoesNotChangeWhenCancellingWrite
  ✅ deleteRealm
  ✅ initialRealmFile
  ✅ writeCopyTo_localToLocal
  ✅ deleteRealm_fileDoesNotExists
  ✅ write_returnDeletedObject
  ✅ writeCopyTo_localToLocalEncrypted
  ✅ close_idempotent
  ✅ writeBlocking_returnDeletedObject
  ✅ closeClosesAllVersions
  ✅ close
  ✅ compactRealm
  ✅ write
  ✅ exceptionInWriteBlockingWillRollback
  ✅ simultaneousWritesAreAllExecuted
  ✅ initialRealmFile_withChecksum
  ✅ initialRealmFile_existingFileDisregardWrongAssetFile
  ✅ compactRealm_failsIfOpen
  ✅ writesOnFrozenRealm
  ✅ writeBlockingAfterWrite
  ✅ initialRealmFile_existingFileDisregardWrongChecksum
  ✅ exceptionInWriteWillRollback
  ✅ initialRealmFile_invalidChecksum
  ✅ versionIncreaseOnWrite
  ⚪ createInitialRealmFile
  ✅ deleteRealm_failures
  ✅ writeBlocking
  ✅ initialVersion
  ✅ writeBlockingWhileWritingIsSerialized
  ✅ initialRealmFile_initialDataOnTopOfInitialRealmFile
  ✅ versionInsideWriteIsLatest
  ✅ coroutineCancelCausesRollback
  ✅ initialRealmFile_nonExistingFile
  ✅ closeCausesOngoingWriteToThrow
io.realm.kotlin.test.common.RealmUUIDTests
  ✅ from_bytes
  ✅ from_uuidString
  ✅ to_string
  ✅ equals
  ✅ random
io.realm.kotlin.test.common.SampleTests
  ✅ query_parseErrorThrows
  ✅ primitiveTypes
  ✅ objectAssignmentDetectsDuplicates
  ✅ delete
  ✅ createAndUpdate
  ✅ updateOutsideTransactionThrows
  ✅ validateInternalGetterAndSetter
  ✅ query
  ✅ list_assign_selfAssignment
  ✅ list_assign_unmanaged
  ✅ list_assign_managed
  ✅ realmObjectCompanion
  ✅ query_delete
io.realm.kotlin.test.common.SchemaTests
  ✅ usingBuilder
  ✅ usingFqNameImports
  ✅ usingCyclicReferenceInSchema
  ✅ usingPositionalArgument
  ✅ usingSingleClassAsNamed
  ✅ with
  ✅ usingNamedArgument
  ✅ usingSingleClassAsPositional
io.realm.kotlin.test.common.SerializationTests
  ✅ exhaustiveRealmAnyTester
  ✅ exhaustiveRealmSetTest
  ✅ exhaustiveElementTypesTester
  ✅ exhaustiveRealmDictTest
  ✅ exhaustiveRealmListTest
io.realm.kotlin.test.common.VersionIdTests
  ✅ compareVersions
  ✅ throwsForNegativeNumbers
io.realm.kotlin.test.common.VersionTrackingTests
  ✅ objectNotificationsCausesTracking
  ✅ initialVersionDereferencedAfterFirstWrite
  ✅ realmAsFlow_doesNotTrackVersions
  ✅ open
  ✅ write_voidBlockIsNotTracked
  ✅ write_returnedObjectIsTracked
io.realm.kotlin.test.common.dynamic.DynamicMutableRealmObjectTests
  ✅ set_overwriteEmbeddedRealmObject
  ✅ list_addAll_detectsDuplicates
  ✅ set_throwsWithWrongType_longInt
  ✅ create_fromMap
  ✅ set_updatesExistingObjectInTree
  ✅ throwsOnRealmAnyPrimaryKey
  ✅ dictionary_put_embeddedRealmObject
  ✅ copyToRealm_embeddedObject_throws
  ✅ set_throwsWithWrongType_stringInt
  ✅ dictionary_putAll_detectsDuplicates
  ✅ dictionary_putAll_embeddedRealmObject
  ✅ get_returnsDynamicMutableObject
  ✅ set_add_detectsDuplicates
  ✅ list_addAll_embeddedRealmObject
  ✅ list_set_detectsDuplicates
  ✅ set_primaryKey
  ✅ dictionary_put_detectsDuplicates
  ✅ list_addAllWithIndex_detectsDuplicates
  ✅ list_addWithIndex_detectsDuplicates
  ✅ list_add_embeddedRealmObject
  ✅ set_throwsOnNullForRequiredField
  ✅ set_detectsDuplicates
  ✅ set_allTypes
  ✅ testNestedCollectionsInDictionarytInRealmAny
  ✅ list_add_detectsDuplicates
  ✅ set_embeddedRealmObject
  ✅ set_addAll_detectsDuplicates
  ✅ testNestedCollectionsInListInRealmAny
io.realm.kotlin.test.common.dynamic.DynamicMutableRealmTests
  ✅ findLatest_identityForLiveObject
  ✅ delete_realmSet
  ✅ query_failsOnUnknownClass
  ✅ copyToRealm_throwsOnAbsentPrimaryKey
  ✅ copyToRealm
  ✅ delete_realmQuery
  ✅ findLatest_unmanagedThrows
  ✅ delete_realmList
  ✅ delete
  ✅ copyToRealm_throwsWithWrongPrimaryKeyType
  ✅ copyToRealm_throwsOnTopLevelEmbeddedRealmObject
  ✅ delete_realmSingleQuery
  ✅ delete_cascadedToEmbeddedRealmObject
  ✅ copyToRealm_withUnmanagedTypedObject
  ✅ copyToRealm_embeddedRealmObjectList
  ✅ delete_nonExistingClassThrows
  ✅ deleteAll
  ✅ findLatest_deleted
  ✅ copyToRealm_throwsOnUnknownProperty
  ✅ copyToRealm_throwsOnPropertyOfWrongType
  ✅ findLatest
  ✅ delete_deletedObjectThrows
  ✅ copyToRealm_throwsOnUnknownClass
  ✅ copyToRealm_embeddedRealmObject
  ✅ copyToRealm_throwsOnNullPrimaryKey
  ✅ copyToRealm_withPrimaryKey
  ✅ delete_unmanagedObjectsThrows
  ✅ delete_realmObject
  ✅ copyToRealm_withManagedDynamicObject
  ✅ copyToRealm_tree_mixedRealmAndEmbeddedRealmObject
  ✅ copyToRealm_updatePolicy_error_throwsOnDuplicatePrimaryKey
  ✅ query_returnsDynamicMutableObject
  ✅ delete_realmResults
  ✅ copyToRealm_updatePolicy_all
  ✅ copyToRealm_withPrimaryKey_null
  ✅ copyToRealm_embeddedTree_updatePolicy_replacesEmbeddedRealmObject
io.realm.kotlin.test.common.dynamic.DynamicRealmObjectTests
  ✅ get_realmAny_nestedCollectionsInDictionary
  ✅ getValueList_throwsIfModified
  ✅ getListVariants_throwsOnWrongTypes
  ✅ get_realmAny_nestedCollectionsInList
  ✅ get_realmAnyList
  ✅ getValueVariants_throwsOnWrongTypes
  ✅ getObject_throwsOnWrongTypes
  ✅ get_realmAnySet
  ✅ get_allTypes
  ✅ observe_throws
  ✅ type
  ✅ dynamicRealm_smoketest
  ✅ get_realmAnyDictionary
  ✅ list_query
  ✅ set_query
  ✅ get_throwsOnUnknownName
  ✅ get_realmAny
  ✅ accessAfterCloseThrows
io.realm.kotlin.test.common.dynamic.DynamicRealmTests
  ✅ query_smokeTest
  ✅ query_unknownNameThrows
io.realm.kotlin.test.common.migration.RealmMigrationTests
  ✅ migrationError_throwsIfVersionIsNotUpdated
  ✅ migrationError_throwsOnDuplicatePrimaryKey
  ✅ migration_smokeTest
  ✅ enumerate
  ✅ migrationContext_publicNamesNotAvailable
  ✅ migrationContext_schemaVerification
  ✅ enumerate_throwsOnInvalidName
  ✅ migrationError_throwingCausesMigrationToFail
  ✅ enumerate_deleteNewObject
io.realm.kotlin.test.common.nonlatin.NonLatinTests
  ✅ roundtripNullCharacter
  ✅ nonLatinProperties
  ✅ nonLatinClassNames
  ✅ roundtripNonLatinValues
io.realm.kotlin.test.common.notifications.BacklinksNotificationsTests
  ✅ asFlowOnDeletedEntity
  ✅ asFlow
  ✅ deleteEntity
  ✅ keyPath_invalidNestedProperty
  ✅ keyPath_propertyBelowDefaultLimit
  ✅ initialElement
  ✅ closingRealmDoesNotCancelFlows
  ✅ keyPath_topLevelProperty
  ✅ keyPath_nestedProperty
  ✅ keyPath_unknownTopLevelProperty
  ⚪ closeRealmInsideFlowThrows
  ✅ keyPath_unknownNestedProperty
  ✅ keyPath_defaultDepth
  ✅ verifyChangeEvents
  ✅ cancelAsFlow
io.realm.kotlin.test.common.notifications.RealmAnyNestedCollectionNotificationTest
  ✅ objectNotificationsOnNestedCollections
io.realm.kotlin.test.common.notifications.RealmAnyNestedDictionaryNotificationTest
  ✅ asFlowOnDeletedEntity
  ✅ asFlow
  ✅ deleteEntity
  ⚪ initialElement
  ⚪ closingRealmDoesNotCancelFlows
  ✅ cancelAsFlow
io.realm.kotlin.test.common.notifications.RealmAnyNestedListNotificationTest
  ✅ asFlowOnDeletedEntity
  ✅ eventsOnDictionaryChangesInRealmAnyList
  ✅ asFlow
  ✅ deleteEntity
  ⚪ initialElement
  ⚪ closingRealmDoesNotCancelFlows
  ⚪ eventsOnObjectChangesInRealmAnyList
  ✅ cancelAsFlow
io.realm.kotlin.test.common.notifications.RealmDictionaryNotificationsTests
  ✅ asFlow
  ✅ keyPath_invalidNestedProperty
  ✅ keyPath_propertyBelowDefaultLimit
  ✅ initialElement
  ✅ closingRealmDoesNotCancelFlows
  ✅ keyPath_topLevelProperty
  ✅ keyPath_nestedProperty
  ✅ keyPath_unknownTopLevelProperty
  ⚪ closeRealmInsideFlowThrows
  ✅ keyPath_unknownNestedProperty
  ✅ keyPath_defaultDepth
  ✅ cancelAsFlow
io.realm.kotlin.test.common.notifications.RealmListNotificationsTests
  ✅ asFlowOnDeletedEntity
  ✅ asFlow
  ✅ deleteEntity
  ✅ keyPath_invalidNestedProperty
  ✅ keyPath_propertyBelowDefaultLimit
  ✅ initialElement
  ✅ closingRealmDoesNotCancelFlows
  ✅ keyPath_topLevelProperty
  ✅ keyPath_nestedProperty
  ✅ keyPath_unknownTopLevelProperty
  ⚪ closeRealmInsideFlowThrows
  ⚪ eventsOnObjectChangesInRealmAnyList
  ✅ keyPath_unknownNestedProperty
  ✅ keyPath_defaultDepth
  ✅ eventsOnObjectChangesInList
  ✅ cancelAsFlow
io.realm.kotlin.test.common.notifications.RealmNotificationsTests
  ✅ asFlow
  ✅ initialElement
  ⚪ closingRealmDoesNotCancelFlows
  ✅ closingRealmCompletesFlow
  ✅ notification_backpressureStrategyDoesNotRuinInternalLogic
  ✅ notification_cancelsOnInsufficientBuffers
  ⚪ closeRealmInsideFlowThrows
  ✅ registerTwoFlows
  ✅ cancelAsFlow
io.realm.kotlin.test.common.notifications.RealmObjectNotificationsTests
  ✅ asFlowOnDeletedEntity
  ✅ asFlow
  ✅ deleteEntity
  ✅ keyPath_invalidNestedProperty
  ✅ keyPath_propertyBelowDefaultLimit
  ✅ initialElement
  ✅ closingRealmDoesNotCancelFlows
  ✅ keyPath_topLevelProperty
  ✅ keyPath_nestedProperty
  ✅ keyPath_unknownTopLevelProperty
  ⚪ closeRealmInsideFlowThrows
  ✅ keyPath_unknownNestedProperty
  ✅ keyPath_defaultDepth
  ✅ cancelAsFlow
io.realm.kotlin.test.common.notifications.RealmResultsNotificationsTests
  ✅ asFlow
  ✅ keyPath_invalidNestedProperty
  ✅ keyPath_propertyBelowDefaultLimit
  ✅ initialElement
  ✅ closingRealmDoesNotCancelFlows
  ✅ keyPath_topLevelProperty
  ✅ keyPath_nestedProperty
  ✅ keyPath_unknownTopLevelProperty
  ⚪ closeRealmInsideFlowThrows
  ✅ keyPath_unknownNestedProperty
  ✅ cancelAsFlow
io.realm.kotlin.test.common.notifications.RealmSetNotificationsTests
  ✅ asFlowOnDeletedEntity
  ✅ asFlow
  ✅ deleteEntity
  ✅ keyPath_invalidNestedProperty
  ✅ keyPath_propertyBelowDefaultLimit
  ✅ initialElement
  ✅ closingRealmDoesNotCancelFlows
  ✅ keyPath_topLevelProperty
  ✅ keyPath_nestedProperty
  ✅ keyPath_unknownTopLevelProperty
  ⚪ closeRealmInsideFlowThrows
  ✅ keyPath_unknownNestedProperty
  ✅ keyPath_defaultDepth
  ✅ cancelAsFlow
io.realm.kotlin.test.common.notifications.SystemNotificationTests
  ✅ multipleSchedulersOnSameThread
io.realm.kotlin.test.common.utils.PlatformUtilsTests
  ✅ createTempDir_createDifferentDirs
  ✅ createTempDir_deleteDifferentDirs
io.realm.kotlin.test.common.utils.SecureRandomTest
  ✅ nextInt_ReturnsDifferentInts
  ✅ nextBytes_ReturnsDifferentBytes
  ✅ nextBites_ReturnsDifferentBits

Annotations

Check failure on line 615 in packages/test-base/src/commonTest/kotlin/io/realm/kotlin/test/common/RealmAnyNestedCollectionTests.kt

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results - Android Base (Emulator)

io.realm.kotlin.test.android.InstrumentedTests ► io.realm.kotlin.test.common.RealmAnyNestedCollectionTests ► query

Failed test found in:
  ./packages/test-base/build/outputs/androidTest-results/connected/TEST-test(AVD) - 13-_test-base-.xml
Error:
  java.util.NoSuchElementException: List is empty.
Raw output
java.util.NoSuchElementException: List is empty.
at kotlin.collections.CollectionsKt___CollectionsKt.single(_Collections.kt:608)
at io.realm.kotlin.test.common.RealmAnyNestedCollectionTests$query$1.invokeSuspend(RealmAnyNestedCollectionTests.kt:615)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking(CoroutineUtilsSharedJvm.kt:22)
at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking$default(CoroutineUtilsSharedJvm.kt:21)
at io.realm.kotlin.test.common.RealmAnyNestedCollectionTests.query(RealmAnyNestedCollectionTests.kt:534)