File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
commonIntegrationTest/kotlin/com/powersync/integrations/room
commonMain/kotlin/com/powersync/integrations/room Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ class PowerSyncRoomTest {
88
88
turbine.awaitItem() shouldHaveSize 1
89
89
turbine.cancel()
90
90
}
91
+
92
+ powersync.close()
91
93
}
92
94
93
95
@Test
@@ -108,6 +110,7 @@ class PowerSyncRoomTest {
108
110
database.userDao().getAll() shouldHaveSize 0
109
111
powersync.execute(" insert into user values (uuid(), ?)" , listOf (" PowerSync user" ))
110
112
database.userDao().getAll() shouldHaveSize 1
113
+ powersync.close()
111
114
}
112
115
113
116
@Test
@@ -133,5 +136,7 @@ class PowerSyncRoomTest {
133
136
turbine.awaitItem() shouldHaveSize 1
134
137
turbine.cancel()
135
138
}
139
+
140
+ powersync.close()
136
141
}
137
142
}
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public class RoomConnectionPool(
91
91
val changed =
92
92
it.usePrepared(" SELECT powersync_update_hooks('get')" ) { stmt ->
93
93
check(stmt.step())
94
- json .decodeFromString<Set <String >>(stmt.getText(0 ))
94
+ Json .decodeFromString<Set <String >>(stmt.getText(0 ))
95
95
}
96
96
97
97
val userTables =
@@ -114,10 +114,6 @@ public class RoomConnectionPool(
114
114
override suspend fun close () {
115
115
// Noop, Room database managed independently
116
116
}
117
-
118
- private companion object {
119
- val json = Json {}
120
- }
121
117
}
122
118
123
119
private class RoomTransactionLease (
You can’t perform that action at this time.
0 commit comments