-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Migrate and reenable sync realm integration test #6939
Conversation
realm/realm-library/src/androidTestObjectServer/kotlin/io/realm/AppConfigurationTests.kt
Outdated
Show resolved
Hide resolved
try { | ||
assertTrue(Realm.deleteRealm(config)) | ||
} catch (e: IllegalStateException) { | ||
// FIXME: We don't have a way to ensure that the Realm instance on client thread has been |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think I saw something about this being fixed. Try talking to @RedBeard0531
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old issue #5416 is still open. I have tried incorporating the shutdown_and_wait
from realm/realm-object-store#1055 but had various issue around it. In some of the other tests referring to #5416 I was not able to get hold of the session and other places like here it did not work out. Reapplied a workaround from another test by retried to close if it fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe related to some internal notification triggering to early due to realm/realm-object-store#1054
realm/realm-library/src/syncIntegrationTest/kotlin/io/realm/SyncedRealmIntegrationTests.kt
Outdated
Show resolved
Hide resolved
realm/realm-library/src/syncIntegrationTest/kotlin/io/realm/SyncedRealmIntegrationTests.kt
Outdated
Show resolved
Hide resolved
realm/realm-library/src/syncIntegrationTest/kotlin/io/realm/SyncedRealmIntegrationTests.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 🧙🏻♂️! Have some questions/points
Fixed issues:
A number of tests requires sessions to be closed, but we loose grip of them as tests intentionally triggers exceptions on
getInstance
. Already tracked in #5416. Tried incorporatingshutdown_and_wait
from realm/realm-object-store#1055 but did not solve the issue. Maybe dependant on realm/realm-object-store#1054 too.