PR#57 Remove unnecessary TestCoroutineScheduler creation

This commit is contained in:
Gergely Hegedus 2022-02-07 11:14:20 +02:00
parent 88b122e0b7
commit 02ac524dd3
5 changed files with 6 additions and 10 deletions

View file

@ -191,7 +191,7 @@ private lateinit var testDispatcher: TestDispatcher
@Before
fun setUp() {
testDispatcher = StandardTestDispatcher(TestCoroutineScheduler())
testDispatcher = StandardTestDispatcher()
DatabaseInitialization.dispatcher = testDispatcher
}
@ -523,7 +523,7 @@ We use a TestDispatcher and initialize our database with it as well.
@Before
fun setup() {
//...
val dispatcher = StandardTestDispatcher(TestCoroutineScheduler())
val dispatcher = StandardTestDispatcher()
Dispatchers.setMain(dispatcher)
testDispatcher = dispatcher
DatabaseInitialization.dispatcher = dispatcher