{
testWriters[i].running = false;
testWriterFutures[i].join();
+ log.info("Joined TestWriter {}", testWriters[i]);
}
testListener.running = false;
testListenerFuture.join();
+ log.info("Joined TestListener");
}
Mono<ChatRoomInfoTo> createChatRoom(String name)
e.getResponseBodyAsString(Charset.defaultCharset()));
})
.takeUntil(message -> !running)
+ .doOnComplete(() -> log.info("TestWriter {} is done", user))
.parallel()
.runOn(Schedulers.parallel())
.then();
private final WebClient webClient;
private final ChatRoomInfoTo chatRoom;
- private final User user;
+ final User user;
final List<MessageTo> sentMessages = new LinkedList<>();
volatile boolean running = true;