Skip to content

Commit

Permalink
do bump
Browse files Browse the repository at this point in the history
  • Loading branch information
clementetb committed Jul 10, 2024
1 parent 4e7ea38 commit c18bcd0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
2 changes: 1 addition & 1 deletion packages/external/core
Submodule core updated 218 files
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class FLXProgressListenerTests {
try {
val flow = realm.syncSession.progressAsFlow(Direction.UPLOAD, ProgressMode.INDEFINITELY)
val job = async {
withTimeout(10.seconds) {
withTimeout(30.seconds) {
flow.collect {
channel.trySend(true)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -710,10 +710,8 @@ class SyncClientResetIntegrationTests {
exception: ClientResetRequiredException
) {
// Notify that this callback has been invoked
assertEquals(
"[Sync][AutoClientResetFailed(1028)] A fatal error occurred during client reset: 'User-provided callback failed'.",
exception.message
)
assertTrue(exception.message!!.contains("User-provided callback failed"))

assertIs<IllegalStateException>(exception.cause)
assertEquals(
"User exception",
Expand Down Expand Up @@ -788,10 +786,8 @@ class SyncClientResetIntegrationTests {
exception: ClientResetRequiredException
) {
// Notify that this callback has been invoked
assertEquals(
"[Sync][AutoClientResetFailed(1028)] A fatal error occurred during client reset: 'User-provided callback failed'.",
exception.message
)
assertTrue(exception.message!!.contains("User-provided callback failed"))

channel.trySendOrFail(ClientResetEvents.ON_MANUAL_RESET_FALLBACK)
}
}).build()
Expand Down Expand Up @@ -1123,10 +1119,8 @@ class SyncClientResetIntegrationTests {
exception: ClientResetRequiredException
) {
// Notify that this callback has been invoked
assertEquals(
"[Sync][AutoClientResetFailed(1028)] A fatal error occurred during client reset: 'User-provided callback failed'.",
exception.message
)
assertTrue(exception.message!!.contains("User-provided callback failed"))

channel.trySendOrFail(ClientResetEvents.ON_MANUAL_RESET_FALLBACK)
}
}).build()
Expand Down Expand Up @@ -1193,11 +1187,8 @@ class SyncClientResetIntegrationTests {
// Validate that files have been moved after explicit reset
assertFalse(fileExists(originalFilePath))
assertTrue(fileExists(recoveryFilePath))

assertEquals(
"[Sync][AutoClientResetFailed(1028)] A fatal error occurred during client reset: 'User-provided callback failed'.",
exception.message
)
println(exception.message)
assertTrue(exception.message!!.contains("User-provided callback failed"))

channel.trySendOrFail(ClientResetEvents.ON_MANUAL_RESET_FALLBACK)
}
Expand Down Expand Up @@ -1400,10 +1391,7 @@ class SyncClientResetIntegrationTests {
assertFalse(fileExists(originalFilePath))
assertTrue(fileExists(recoveryFilePath))

assertEquals(
"[Sync][AutoClientResetFailed(1028)] A fatal error occurred during client reset: 'User-provided callback failed'.",
exception.message
)
assertTrue(exception.message!!.contains("User-provided callback failed"))

channel.trySendOrFail(ClientResetEvents.ON_MANUAL_RESET_FALLBACK)
}
Expand Down

0 comments on commit c18bcd0

Please sign in to comment.