Fix ReactiveStreamsConsumerTests and Checkstyle

Also increase timeouts in the `RedisAvailableRule`
This commit is contained in:
Artem Bilan
2017-06-21 12:12:49 -04:00
parent a834ce9ffb
commit d766d233f5
3 changed files with 20 additions and 17 deletions

View File

@@ -60,7 +60,8 @@ public class FluxMessageChannel extends AbstractMessageChannel
@Override
protected boolean doSend(Message<?> message, long timeout) {
Assert.state(subscribers.size() > 0, () -> "The [" + this + "] doesn't have subscribers to accept messages");
Assert.state(this.subscribers.size() > 0,
() -> "The [" + this + "] doesn't have subscribers to accept messages");
this.sink.next(message);
return true;
}