# Class com.ustadmobile.libcache.UstadCacheTrimmerTest

1 tests | 0 failures | 0 ignored | 0.143s duration
| 100% successful

- Tests
- Standard error

## Tests

Test | Method name | Duration | Result
--- | --- | --- | ---
givenEntriesExceedSize_whenTrimRun_thenWillEvictRequiredEntries[jvm] | givenEntriesExceedSize_whenTrimRun_thenWillEvictRequiredEntries | 0.143s | passed

## Standard error

    Exception in thread "DefaultDispatcher-worker-2 @coroutine#15" androidx.sqlite.SQLiteException: Error code: 14
    	at androidx.sqlite.driver.bundled.BundledSQLiteDriverKt.nativeOpen(Native Method)
    	at androidx.sqlite.driver.bundled.BundledSQLiteDriverKt.access$nativeOpen(BundledSQLiteDriver.jvmAndroid.kt:1)
    	at androidx.sqlite.driver.bundled.BundledSQLiteDriver.open(BundledSQLiteDriver.jvmAndroid.kt:70)
    	at androidx.sqlite.driver.bundled.BundledSQLiteDriver.open(BundledSQLiteDriver.jvmAndroid.kt:56)
    	at androidx.room.BaseRoomConnectionManager$DriverWrapper.openLocked$lambda$1(RoomConnectionManager.kt:75)
    	at androidx.room.concurrent.ExclusiveLock.withLock(ExclusiveLock.kt:50)
    	at androidx.room.BaseRoomConnectionManager$DriverWrapper.openLocked(RoomConnectionManager.kt:68)
    	at androidx.room.BaseRoomConnectionManager$DriverWrapper.open(RoomConnectionManager.kt:60)
    	at androidx.room.coroutines.ConnectionPoolImpl._init_$lambda$5(ConnectionPoolImpl.kt:98)
    	at androidx.room.coroutines.Pool.tryOpenNewConnectionLocked(ConnectionPoolImpl.kt:258)
    	at androidx.room.coroutines.Pool.acquire(ConnectionPoolImpl.kt:243)
    	at androidx.room.coroutines.Pool$acquireWithTimeout$2.invokeSuspend(ConnectionPoolImpl.kt:214)
    	at androidx.room.coroutines.Pool$acquireWithTimeout$2.invoke(ConnectionPoolImpl.kt)
    	at androidx.room.coroutines.Pool$acquireWithTimeout$2.invoke(ConnectionPoolImpl.kt)
    	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66)
    	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:50)
    	at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:149)
    	at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:44)
    	at kotlinx.coroutines.TimeoutKt.withTimeout-KLykuaI(Timeout.kt:72)
    	at androidx.room.coroutines.Pool.acquireWithTimeout-KLykuaI(ConnectionPoolImpl.kt:214)
    	at androidx.room.coroutines.ConnectionPoolImpl.useConnection(ConnectionPoolImpl.kt:143)
    	at androidx.room.RoomConnectionManager.useConnection(RoomConnectionManager.jvmNative.kt:52)
    	at androidx.room.RoomDatabase.useConnection(RoomDatabase.jvmNative.kt:255)
    	at androidx.room.RoomDatabaseKt__RoomDatabaseKt$useWriterConnection$2.invokeSuspend(RoomDatabase.kt:502)
    	at androidx.room.RoomDatabaseKt__RoomDatabaseKt$useWriterConnection$2.invoke(RoomDatabase.kt)
    	at androidx.room.RoomDatabaseKt__RoomDatabaseKt$useWriterConnection$2.invoke(RoomDatabase.kt)
    	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66)
    	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:43)
    	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
    	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    	at androidx.room.RoomDatabaseKt__RoomDatabaseKt.useWriterConnection(RoomDatabase.kt:501)
    	at androidx.room.RoomDatabaseKt.useWriterConnection(RoomDatabase.kt:1)
    	at com.ustadmobile.libcache.UstadCacheImpl.commit(UstadCacheImpl.kt:914)
    	at com.ustadmobile.libcache.UstadCacheImpl$2.invokeSuspend(UstadCacheImpl.kt:338)
    	at _COROUTINE._BOUNDARY._(CoroutineDebugging.kt:42)
    	at androidx.room.coroutines.Pool.acquireWithTimeout-KLykuaI(ConnectionPoolImpl.kt:214)
    	at androidx.room.coroutines.ConnectionPoolImpl.useConnection(ConnectionPoolImpl.kt:143)
    	at androidx.room.RoomDatabaseKt__RoomDatabaseKt$useWriterConnection$2.invokeSuspend(RoomDatabase.kt:502)
    	at androidx.room.RoomDatabaseKt__RoomDatabaseKt.useWriterConnection(RoomDatabase.kt:501)
    	at com.ustadmobile.libcache.UstadCacheImpl$2.invokeSuspend(UstadCacheImpl.kt:338)
    	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [CoroutineId(15), "coroutine#15":StandaloneCoroutine{Cancelling}@3206d857, Dispatchers.IO]
    Caused by: androidx.sqlite.SQLiteException: Error code: 14
    	at androidx.sqlite.driver.bundled.BundledSQLiteDriverKt.nativeOpen(Native Method)
    	at androidx.sqlite.driver.bundled.BundledSQLiteDriverKt.access$nativeOpen(BundledSQLiteDriver.jvmAndroid.kt:1)
    	at androidx.sqlite.driver.bundled.BundledSQLiteDriver.open(BundledSQLiteDriver.jvmAndroid.kt:70)
    	at androidx.sqlite.driver.bundled.BundledSQLiteDriver.open(BundledSQLiteDriver.jvmAndroid.kt:56)
    	at androidx.room.BaseRoomConnectionManager$DriverWrapper.openLocked$lambda$1(RoomConnectionManager.kt:75)
    	at androidx.room.concurrent.ExclusiveLock.withLock(ExclusiveLock.kt:50)
    	at androidx.room.BaseRoomConnectionManager$DriverWrapper.openLocked(RoomConnectionManager.kt:68)
    	at androidx.room.BaseRoomConnectionManager$DriverWrapper.open(RoomConnectionManager.kt:60)
    	at androidx.room.coroutines.ConnectionPoolImpl._init_$lambda$5(ConnectionPoolImpl.kt:98)
    	at androidx.room.coroutines.Pool.tryOpenNewConnectionLocked(ConnectionPoolImpl.kt:258)
    	at androidx.room.coroutines.Pool.acquire(ConnectionPoolImpl.kt:243)
    	at androidx.room.coroutines.Pool$acquireWithTimeout$2.invokeSuspend(ConnectionPoolImpl.kt:214)
    	at androidx.room.coroutines.Pool$acquireWithTimeout$2.invoke(ConnectionPoolImpl.kt)
    	at androidx.room.coroutines.Pool$acquireWithTimeout$2.invoke(ConnectionPoolImpl.kt)
    	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66)
    	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:50)
    	at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:149)
    	at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:44)
    	at kotlinx.coroutines.TimeoutKt.withTimeout-KLykuaI(Timeout.kt:72)
    	at androidx.room.coroutines.Pool.acquireWithTimeout-KLykuaI(ConnectionPoolImpl.kt:214)
    	at androidx.room.coroutines.ConnectionPoolImpl.useConnection(ConnectionPoolImpl.kt:143)
    	at androidx.room.RoomConnectionManager.useConnection(RoomConnectionManager.jvmNative.kt:52)
    	at androidx.room.RoomDatabase.useConnection(RoomDatabase.jvmNative.kt:255)
    	at androidx.room.RoomDatabaseKt__RoomDatabaseKt$useWriterConnection$2.invokeSuspend(RoomDatabase.kt:502)
    	at androidx.room.RoomDatabaseKt__RoomDatabaseKt$useWriterConnection$2.invoke(RoomDatabase.kt)
    	at androidx.room.RoomDatabaseKt__RoomDatabaseKt$useWriterConnection$2.invoke(RoomDatabase.kt)
    	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66)
    	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:43)
    	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
    	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    	at androidx.room.RoomDatabaseKt__RoomDatabaseKt.useWriterConnection(RoomDatabase.kt:501)
    	at androidx.room.RoomDatabaseKt.useWriterConnection(RoomDatabase.kt:1)
    	at com.ustadmobile.libcache.UstadCacheImpl.commit(UstadCacheImpl.kt:914)
    	at com.ustadmobile.libcache.UstadCacheImpl$2.invokeSuspend(UstadCacheImpl.kt:338)
    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
    	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
    	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
    	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)