Skip to content

Commit 36a5173

Browse files
committed
Add changelog entry
1 parent dc12768 commit 36a5173

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Remove the legacy Kotlin sync client. `newSyncClientImplementation` is now the only supported
66
option.
7+
- Avoid reconnect delay on reconnects due to a prefetched token.
78

89
## 1.11.2
910

common/src/commonIntegrationTest/kotlin/com/powersync/sync/SyncIntegrationTest.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -787,12 +787,13 @@ class SyncIntegrationTest : AbstractSyncTest() {
787787
database.currentStatus.connected shouldBe true
788788

789789
// After the prefetch completes, we should reconnect
790-
val timeToReconnect = scope.testTimeSource.measureTime {
791-
completePrefetch.complete(Unit)
792-
turbine.waitFor { !it.connected }
790+
val timeToReconnect =
791+
scope.testTimeSource.measureTime {
792+
completePrefetch.complete(Unit)
793+
turbine.waitFor { !it.connected }
793794

794-
turbine.waitFor { it.connected }
795-
}
795+
turbine.waitFor { it.connected }
796+
}
796797
// We should not wait for the reconnect delay when we reconnect due to a prefetched
797798
// token (that's kind of the whole point...).
798799
timeToReconnect shouldBe 0.seconds

0 commit comments

Comments
 (0)