rename scheduler rule
This commit is contained in:
parent
937cdaf6be
commit
47bc12d6af
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ class RxExtensionsTest {
|
||||||
private val testScheduler = TestScheduler()
|
private val testScheduler = TestScheduler()
|
||||||
|
|
||||||
@get:Rule
|
@get:Rule
|
||||||
val schedulerRule = TestSchedulerRule(testScheduler)
|
val schedulerRule = RxSchedulerRule(testScheduler)
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `fail after 4 retries`() {
|
fun `fail after 4 retries`() {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import org.junit.rules.TestRule
|
||||||
import org.junit.runner.Description
|
import org.junit.runner.Description
|
||||||
import org.junit.runners.model.Statement
|
import org.junit.runners.model.Statement
|
||||||
|
|
||||||
class TestSchedulerRule(val scheduler: Scheduler) : TestRule {
|
class RxSchedulerRule(val scheduler: Scheduler) : TestRule {
|
||||||
|
|
||||||
override fun apply(base: Statement, description: Description) =
|
override fun apply(base: Statement, description: Description) =
|
||||||
object : Statement() {
|
object : Statement() {
|
||||||
|
|
Loading…
Reference in a new issue