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

Fix missing initial progress notifier event #1738

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import kotlinx.coroutines.withTimeout
import org.mongodb.kbson.ObjectId
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
import kotlin.test.Ignore
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
Expand Down Expand Up @@ -85,7 +84,6 @@ class ProgressListenerTests {
}

@Test
@Ignore // https://github.com/realm/realm-core/issues/7627
fun downloadProgressListener_changesOnly() = runBlocking {
Realm.open(createSyncConfig(app.createUserAndLogIn())).use { uploadRealm ->
// Verify that we:
Expand All @@ -103,7 +101,7 @@ class ProgressListenerTests {

// We are not sure when the realm actually knows of the remote changes and consider
// them current, so wait a bit
delay(10.seconds)
delay(5.seconds)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this enough for GHA?

realm.syncSession.progressAsFlow(Direction.DOWNLOAD, ProgressMode.CURRENT_CHANGES)
.run {
withTimeout(TIMEOUT) {
Expand Down Expand Up @@ -175,7 +173,6 @@ class ProgressListenerTests {
}

@Test
@Ignore // https://github.com/realm/realm-core/issues/7627
fun worksAfterExceptions() = runBlocking {
Realm.open(createSyncConfig(app.createUserAndLogIn())).use { realm ->
realm.writeSampleData(TEST_SIZE, timeout = TIMEOUT)
Expand All @@ -198,7 +195,6 @@ class ProgressListenerTests {
}

@Test
@Ignore // https://github.com/realm/realm-core/issues/7627
fun worksAfterCancel() = runBlocking {
Realm.open(createSyncConfig(app.createUserAndLogIn())).use { realm ->
realm.writeSampleData(TEST_SIZE, timeout = TIMEOUT)
Expand Down Expand Up @@ -229,7 +225,6 @@ class ProgressListenerTests {
}

@Test
@Ignore // https://github.com/realm/realm-core/issues/7627
fun triggerImmediatelyWhenRegistered() = runBlocking {
Realm.open(createSyncConfig(app.createUserAndLogIn())).use { realm ->
withTimeout(10.seconds) {
Expand Down
Loading