File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
core/src/commonIntegrationTest/kotlin/com/powersync Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import com.powersync.testutils.databaseTest
1515import com.powersync.testutils.waitFor
1616import com.powersync.utils.JsonUtil
1717import dev.mokkery.verify
18- import io.kotest.assertions.withClue
1918import io.kotest.matchers.collections.shouldHaveSize
2019import io.kotest.matchers.shouldBe
2120import kotlinx.coroutines.DelicateCoroutinesApi
@@ -48,10 +47,8 @@ class SyncIntegrationTest {
4847 turbine.cancel()
4948 }
5049
51- // Closing the database should have closed the channel
52- withClue(" Should have closed sync stream" ) {
53- syncLines.isClosedForSend shouldBe true
54- }
50+ // Closing the database should have closed the channel.
51+ waitFor { syncLines.isClosedForSend shouldBe true }
5552 }
5653
5754 @Test
@@ -71,9 +68,7 @@ class SyncIntegrationTest {
7168 }
7269
7370 // Disconnecting should have closed the channel
74- withClue(" Should have closed sync stream" ) {
75- syncLines.isClosedForSend shouldBe true
76- }
71+ waitFor { syncLines.isClosedForSend shouldBe true }
7772
7873 // And called invalidateCredentials on the connector
7974 verify { connector.invalidateCredentials() }
You can’t perform that action at this time.
0 commit comments