PR#57 Remove unnecessary TestCoroutineScheduler creation
This commit is contained in:
parent
88b122e0b7
commit
02ac524dd3
5 changed files with 6 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue