if (!isShardOwned[shard])
{
- log.error("Shard {} for chat-room {] not owned!", shard, id);
+ log.error("Shard {} for chat-room {} not owned!", shard, id);
return Mono.error(new ShardNotOwnedException(shard));
}
// When
Mono<ChatRoom> mono = chatHome
.getChatRoom(chatRoomId)
- .log()
+ .log("testGetExistingChatroom")
.retryWhen(Retry
.backoff(5, Duration.ofSeconds(1))
- .filter(throwable -> throwable instanceof LoadInProgressException))
- .log();
+ .filter(throwable -> throwable instanceof LoadInProgressException));
// Then
assertThat(mono).emitsCount(1);
// When
Mono<ChatRoom> mono = chatHome
.getChatRoom(chatRoomId)
- .log()
+ .log("testGetNonExistentChatroom")
.retryWhen(Retry
.backoff(5, Duration.ofSeconds(1))
- .filter(throwable -> throwable instanceof LoadInProgressException))
- .log();
+ .filter(throwable -> throwable instanceof LoadInProgressException));
// Then
assertThat(mono).sendsError(e ->
// When
Mono<ChatRoom> mono = chatHome
.getChatRoom(chatRoomId)
- .log()
+ .log("testGetChatroomForNotOwnedShard")
.retryWhen(Retry
.backoff(5, Duration.ofSeconds(1))
- .filter(throwable -> throwable instanceof LoadInProgressException))
- .log();
+ .filter(throwable -> throwable instanceof LoadInProgressException));
// Then
assertThat(mono).sendsError(e ->