Skip to content

Commit cc6f5e5

Browse files
DmitriyZaitsevakarnokd
authored andcommitted
2.x: provide an explanation why certain tests are ignored (#4120)
1 parent 5350508 commit cc6f5e5

File tree

8 files changed

+11
-12
lines changed

8 files changed

+11
-12
lines changed

src/test/java/io/reactivex/flowable/BackpressureTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public Publisher<Integer> apply(Integer i) {
237237
}
238238

239239
@Test
240-
@Ignore // the test is non-deterministic and can't be made deterministic
240+
@Ignore("The test is non-deterministic and can't be made deterministic")
241241
public void testFlatMapAsync() {
242242
int NUM = (int) (Flowable.bufferSize() * 2.1);
243243
AtomicInteger c = new AtomicInteger();

src/test/java/io/reactivex/flowable/CombineLatestTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void accept(ExtendedResult t1) {
6464
}
6565
};
6666

67-
@Ignore
67+
@Ignore("No longer allowed")
6868
@Test
6969
public void testNullEmitting() throws Exception {
7070
// FIXME this is no longer allowed

src/test/java/io/reactivex/flowable/ObservableTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ public Integer apply(Integer t1, Integer t2) {
270270
verify(w).onNext(60);
271271
}
272272

273-
@Ignore // FIXME throwing is not allowed from the create?!
274-
@Test
273+
@Ignore("Throwing is not allowed from the create?!")
274+
@Test // FIXME throwing is not allowed from the create?!
275275
public void testOnSubscribeFails() {
276276
Subscriber<String> observer = TestHelper.mockSubscriber();
277277

src/test/java/io/reactivex/internal/operators/flowable/FlowableFlatMapTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ public void testFlatMapTransformsMaxConcurrentNormal() {
431431
verify(o, never()).onError(any(Throwable.class));
432432
}
433433

434-
@Ignore // don't care for any reordering
434+
@Ignore("Don't care for any reordering")
435435
@Test(timeout = 10000)
436436
public void flatMapRangeAsyncLoop() {
437437
for (int i = 0; i < 2000; i++) {

src/test/java/io/reactivex/internal/operators/observable/NbpOperatorFlatMapTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ public void testFlatMapTransformsMaxConcurrentNormal() {
430430
verify(o, never()).onError(any(Throwable.class));
431431
}
432432

433-
@Ignore // don't care for any reordering
433+
@Ignore("Don't care for any reordering")
434434
@Test(timeout = 10000)
435435
public void flatMapRangeAsyncLoop() {
436436
for (int i = 0; i < 2000; i++) {

src/test/java/io/reactivex/observable/NbpCombineLatestTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void accept(ExtendedResult t1) {
6363
}
6464
};
6565

66-
@Ignore
66+
@Ignore("No longer allowed")
6767
@Test
6868
public void testNullEmitting() throws Exception {
6969
// FIXME this is no longer allowed

src/test/java/io/reactivex/observable/NbpObservableTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ public Integer apply(Integer t1, Integer t2) {
270270
verify(w).onNext(60);
271271
}
272272

273-
@Ignore // FIXME throwing is not allowed from the create?!
274-
@Test
273+
@Ignore("Throwing is not allowed from the create?!")
274+
@Test // FIXME throwing is not allowed from the create?!
275275
public void testOnSubscribeFails() {
276276
Observer<String> observer = TestHelper.mockNbpSubscriber();
277277

src/test/java/io/reactivex/subscribers/SerializedObserverTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ public void runConcurrencyTest() {
254254
*
255255
* @throws InterruptedException
256256
*/
257-
@Ignore
258-
// this is non-deterministic ... haven't figured out what's wrong with the test yet (benjchristensen: July 2014)
257+
@Ignore("this is non-deterministic ... haven't figured out what's wrong with the test yet (benjchristensen: July 2014)")
259258
@Test
260259
public void testNotificationDelay() throws InterruptedException {
261260
ExecutorService tp1 = Executors.newFixedThreadPool(1);
@@ -345,7 +344,7 @@ public void onNext(String t) {
345344
*
346345
* @throws InterruptedException
347346
*/
348-
@Ignore
347+
@Ignore("Demonstrates thread starvation problem. Read JavaDoc")
349348
@Test
350349
public void testThreadStarvation() throws InterruptedException {
351350

0 commit comments

Comments
 (0)