Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNET-1126: Fix flaky tests on CI #3595

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Small corrections

12b8ffe
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

RNET-1126: Fix flaky tests on CI #3595

Small corrections
12b8ffe
Select commit
Loading
Failed to load commit list.
GitHub Actions / Results Maui.iOS failed Jun 20, 2024 in 0s

5447 passed, 1 failed and 606 skipped

Tests failed

❌ TestResults.xml_transformed.xml

6054 tests were completed in 499s with 5447 passed, 1 failed and 606 skipped.

Test suite Passed Failed Skipped Time
Realm.Tests.dll.Realms.Tests.Database.NotificationTests. 59✅ 1❌ 1⚪ 11s

❌ Realm.Tests.dll.Realms.Tests.Database.NotificationTests.

Realms.Tests.Database.NotificationTests
  ✅ BackLinkInObjectShouldNotFireNotificationOnChange
  ✅ CollectionPropertiesOfDifferentTypeShouldNotFireNotificationsOnChange
  ✅ CollectionPropertiesOfSameTypeShouldNotFireNotificationsOnChange
  ✅ DictionaryNotificationToken_KeepsCollectionAlive
  ✅ DictionaryOnCollectionChangedShouldFireOnAddRemove
  ✅ DictionarySubscribeInTransaction
  ✅ DictionaryUnsubscribeInNotificationCallback
  ✅ KeyPath_CanBeBuiltFromExpressions
  ✅ KeyPath_ImplicitOperator_CorrectlyConvertsFromString
  ✅ KeyPath_WithInvalidExpressions_ThrowsException
  ✅ KeyPathsCollection_CanBeBuiltFromExpressions
  ✅ KeyPathsCollection_CanBeBuiltInDifferentWays
  ✅ KeyPathsCollection_WithInvalidExpressions_ThrowsExceptions
  ✅ Link_ShouldOnlyFireNotificationForReassignment
  ✅ List_WhenParentIsDeleted_RaisesReset
  ✅ List_WhenTransactionHasBothAddAndRemove_ShouldReset
  ✅ List_WhenUnsubscribed_ShouldStopReceivingNotifications
  ✅ ListOnCollectionChangedShouldFireOnAddMoveReplaceRemove
  ✅ ListReplace_RaisesReplaceNotifications
  ✅ ListShouldSendNotifications
  ✅ ModifiedIndices_ReportCorrectlyForOldAndNewVersions
  ✅ PrimitivePropertyInObjectShouldFireNotificationOnChange
  ✅ RealmError_WhenNoSubscribers_OutputsMessageInConsole
  ✅ ResultOnCollectionChangedShouldFireOnAddRemove
  ✅ Results_WhenTransactionHasBothAddAndRemove_ShouldReset
  ✅ Results_WhenUnsubscribed_ShouldStopReceivingNotifications
  ✅ ResultsShouldSendNotifications
  ✅ SetOnCollectionChangedShouldFireOnAddRemove
  ✅ ShouldTriggerRealmChangedEvent
  ✅ SubscribeForNotifications_InvokedWithInitialCallback
  ✅ SubscribeWithKeypaths_AnyKeypath_RaisesNotificationsForResults
  ✅ SubscribeWithKeypaths_Backlinks
  ✅ SubscribeWithKeypaths_DisposingToken_CancelNotifications
  ✅ SubscribeWithKeypaths_FullKeyPath_SameAsFourLevelsDepth
  ❌ SubscribeWithKeypaths_MappedClass_WorksCorrectly
	at Realms.Tests.Database.NotificationTests.VerifyNotifications(List`1 notifications, Int32[] expectedInserted, Int32[] expectedModified, Int32[] expectedDeleted, Move[] expectedMoves, Boolean expectedCleared, Boolean expectedNotifications)
  ✅ SubscribeWithKeypaths_MappedProperty_UsesOriginalName
  ✅ SubscribeWithKeypaths_MultipleKeypaths
  ✅ SubscribeWithKeypaths_NestedProperties_WorksWithCollections
  ✅ SubscribeWithKeypaths_NestedProperties_WorksWithScalar
  ✅ SubscribeWithKeypaths_OnCollection_Dictionary
  ✅ SubscribeWithKeypaths_OnCollection_DictionaryRemapped
  ✅ SubscribeWithKeypaths_OnCollection_List
  ✅ SubscribeWithKeypaths_OnCollection_ListRemapped
  ✅ SubscribeWithKeypaths_OnCollection_Set
  ✅ SubscribeWithKeypaths_OnCollection_SetRemapped
  ✅ SubscribeWithKeypaths_ShallowKeypath_RaisesOnlyCollectionNotifications
  ✅ SubscribeWithKeypaths_TopLevelProperties_WorksWithCollection
  ✅ SubscribeWithKeypaths_TopLevelProperties_WorksWithScalar
  ✅ SubscribeWithKeypaths_WildCard_CanGetDeeperThanFourLevels
  ✅ SubscribeWithKeypaths_WildCard_WorksAfterCollectionProperty
  ✅ SubscribeWithKeypaths_WildCard_WorksAfterLinkProperty
  ✅ SubscribeWithKeypaths_WildCard_WorksWithMultipleLevels
  ✅ SubscribeWithKeypaths_WildCard_WorksWithPropertyAfterward
  ✅ SubscribeWithKeypaths_WildCard_WorksWithTopLevel
  ⚪ SubscribeWithKeypaths_WildcardOnScalarProperty_Throws
  ✅ SubscribeWithKeypaths_WithEmptyOrWhiteSpaceKeypaths_Throws
  ✅ SubscribeWithKeypaths_WithNonRealmObjectType_Throws
  ✅ SubscribeWithKeypaths_WithRepeatedKeypath_IgnoresRepeated
  ✅ SubscribeWithKeypaths_WithUnknownProperty_Throws
  ✅ UnsubscribeInNotificationCallback
  ✅ WhenSynchronizationContextExists_ShouldAutoRefresh

Annotations

Check failure on line 0 in TestResults.xml_transformed.xml

See this annotation in the file changed.

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

Realm.Tests.dll.Realms.Tests.Database.NotificationTests. ► Realms.Tests.Database.NotificationTests ► SubscribeWithKeypaths_MappedClass_WorksCorrectly

Failed test found in:
  TestResults.xml_transformed.xml
Error:
     at Realms.Tests.Database.NotificationTests.VerifyNotifications(List`1 notifications, Int32[] expectedInserted, Int32[] expectedModified, Int32[] expectedDeleted, Move[] expectedMoves, Boolean expectedCleared, Boolean expectedNotifications)
Raw output
   at Realms.Tests.Database.NotificationTests.VerifyNotifications(List`1 notifications, Int32[] expectedInserted, Int32[] expectedModified, Int32[] expectedDeleted, Move[] expectedMoves, Boolean expectedCleared, Boolean expectedNotifications)
   at Realms.Tests.Database.NotificationTests.SubscribeWithKeypaths_MappedClass_WorksCorrectly()