projects
/
demos
/
kafka
/
chat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c545b7
)
WIP:wait
author
Kai Moritz
<kai@juplo.de>
Sat, 24 Feb 2024 17:59:05 +0000
(18:59 +0100)
committer
Kai Moritz
<kai@juplo.de>
Sat, 24 Feb 2024 17:59:05 +0000
(18:59 +0100)
src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java
patch
|
blob
|
history
diff --git
a/src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java
b/src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java
index
df530b5
..
c8f6b29
100644
(file)
--- a/
src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java
+++ b/
src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java
@@
-116,15
+116,16
@@
class KafkaHandoverIT extends AbstractHandoverIT
{
if (response.statusCode().equals(HttpStatus.OK))
{
- return response.bodyToMono(StatusTo.class);
+ return response
+ .bodyToMono(StatusTo.class)
+ .map(StatusTo::getStatus)
+ .map(status -> status.equalsIgnoreCase("UP"));
}
else
{
- return
response.createError(
);
+ return
Mono.just(false
);
}
})
- .map(StatusTo::getStatus)
- .map(status -> status.equalsIgnoreCase("UP"))
.block());
log.info("Some backend was UP");