Skip to content

Commit

Permalink
handle compiler warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vpriscan committed Jul 28, 2019
1 parent b35000f commit f148892
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/kotlin/io/reactivex/rxkotlin/BasicKotlinTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class BasicKotlinTests : KotlinTests() {
@Test fun testTakeWhileWithIndex() {
Observable.fromIterable(listOf(1, 2, 3))
.takeWhile { x -> x < 3 }
.zipWith(Observable.range(0, Integer.MAX_VALUE), BiFunction<Int, Int, Int> { x, i -> x })
.zipWith(Observable.range(0, Integer.MAX_VALUE), BiFunction<Int, Int, Int> { x, _ -> x })
.subscribe(received())
verify(a, times(1)).received(1)
verify(a, times(1)).received(2)
Expand Down
4 changes: 2 additions & 2 deletions src/test/kotlin/io/reactivex/rxkotlin/CompletableTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class CompletableTest : KotlinTests() {
}

@Test(expected = NoSuchElementException::class) fun testCreateFromSingle() {
val c1 = Single.just("Hello World!").toCompletable()
val c1 = Single.just("Hello World!").ignoreElement()
assertNotNull(c1)
c1.toObservable<String>().blockingFirst()
}

@Test fun testConcatAll() {
var list = emptyList<Int>()
val list = emptyList<Int>().toMutableList()
(0 until 10)
.map { v -> Completable.create { list += v } }
.concatAll()
Expand Down

0 comments on commit f148892

Please sign in to comment.