Skip to content

Commit 95dd3b3

Browse files
committed
Fix test by inserting more data
1 parent 84cfa28 commit 95dd3b3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

core-tests-android/src/androidTest/java/com/powersync/AndroidDatabaseTest.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,12 @@ class AndroidDatabaseTest {
224224
}
225225

226226
@Test
227-
fun canCreateTemporaryTable() = runTest {
227+
fun canUseTempStore() = runTest {
228228
database.execute("PRAGMA temp_store = 1;") // Store temporary data as files
229-
database.execute("CREATE TEMP TABLE my_tbl (content ANY) STRICT;")
230-
for (i in 0..128) {
231-
database.execute("INSERT INTO my_tbl VALUES (randomblob(1024 * 1024))")
229+
database.execute("CREATE TEMP TABLE foo (bar TEXT);")
230+
val data = "new row".repeat(100);
231+
for (i in 0..10000) {
232+
database.execute("INSERT INTO foo VALUES (?)", parameters = listOf(data))
232233
}
233234
}
234235
}

0 commit comments

Comments
 (0)