Skip to content

Commit a45c3c0

Browse files
authored
Remove InstantTaskExecutor rule as no longer needed (#923)
1 parent 5759ed7 commit a45c3c0

File tree

1 file changed

+0
-6
lines changed
  • app/src/androidTest/java/com/example/android/architecture/blueprints/todoapp/data/source/local

1 file changed

+0
-6
lines changed

app/src/androidTest/java/com/example/android/architecture/blueprints/todoapp/data/source/local/TaskDaoTest.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.example.android.architecture.blueprints.todoapp.data.source.local
1818

19-
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
2019
import androidx.room.Room
2120
import androidx.test.core.app.ApplicationProvider.getApplicationContext
2221
import androidx.test.ext.junit.runners.AndroidJUnit4
@@ -44,14 +43,9 @@ class TaskDaoTest {
4443
).allowMainThreadQueries().build()
4544

4645
// Set the main coroutines dispatcher for unit testing.
47-
@ExperimentalCoroutinesApi
4846
@get:Rule
4947
val mainCoroutineRule = MainCoroutineRule()
5048

51-
// Executes each task synchronously using Architecture Components.
52-
@get:Rule
53-
val instantExecutorRule = InstantTaskExecutorRule()
54-
5549
// Ensure that we use an empty database for each test.
5650
@Before
5751
fun initDb() = database.clearAllTables()

0 commit comments

Comments
 (0)