diff --git a/app/src/androidTest/java/com/h/pixeldroid/AppDatabaseTest.kt b/app/src/androidTest/java/com/h/pixeldroid/AppDatabaseTest.kt index bd2fe965..0a66f2e9 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/AppDatabaseTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/AppDatabaseTest.kt @@ -54,6 +54,7 @@ class AppDatabaseTest { @Test fun testUtilsLRU() { for(i in 1..db!!.MAX_NUMBER_OF_POSTS) { + //sleep a bit to not have the weird concurrency bugs? Thread.sleep(10) DatabaseUtils.insertAllPosts(db!!, PostEntity(i, i.toString(), date= Calendar.getInstance().time)) }