diff --git a/app/src/test/java/openfoodfacts/github/scrachx/openfood/category/CategoryRepositoryTest.kt b/app/src/test/java/openfoodfacts/github/scrachx/openfood/category/CategoryRepositoryTest.kt index a128c2e7231f..7a83fd973bdb 100644 --- a/app/src/test/java/openfoodfacts/github/scrachx/openfood/category/CategoryRepositoryTest.kt +++ b/app/src/test/java/openfoodfacts/github/scrachx/openfood/category/CategoryRepositoryTest.kt @@ -2,6 +2,7 @@ package openfoodfacts.github.scrachx.openfood.category import com.google.common.truth.Truth.assertThat import kotlinx.coroutines.ExperimentalCoroutinesApi +import kotlinx.coroutines.runBlocking import kotlinx.coroutines.test.runBlockingTest import openfoodfacts.github.scrachx.openfood.MockitoHelper import openfoodfacts.github.scrachx.openfood.category.mapper.CategoryMapper @@ -43,7 +44,7 @@ class CategoryRepositoryTest { } @Test - fun retrieveAll_Success() = runBlockingTest { + fun retrieveAll_Success() = runBlocking { // runBlockingTest made this crash val result = repository.retrieveAll()!![0] assertThat(result).isEqualTo(category) }