This commit is contained in:
Stephane Maldini 2016-05-12 09:36:28 +01:00
parent efa5b876fe
commit a108268241
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ public class ChannelSendOperatorTests {
IllegalStateException error = new IllegalStateException("boo");
Flux<String> publisher = Flux.generate(() -> 0, (idx , subscriber) -> {
int i = ++idx;
subscriber.tryEmit(String.valueOf(i));
subscriber.next(String.valueOf(i));
if (i == 3) {
subscriber.fail(error);
}