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:
ceef7f3
)
test: HandoverIT-POC - Added a delay to the sending-loop
author
Kai Moritz
<kai@juplo.de>
Tue, 27 Feb 2024 22:53:08 +0000
(23:53 +0100)
committer
Kai Moritz
<kai@juplo.de>
Fri, 22 Mar 2024 08:48:52 +0000
(09:48 +0100)
src/test/java/de/juplo/kafka/chat/backend/TestClient.java
patch
|
blob
|
history
diff --git
a/src/test/java/de/juplo/kafka/chat/backend/TestClient.java
b/src/test/java/de/juplo/kafka/chat/backend/TestClient.java
index
fe39e44
..
0461970
100644
(file)
--- a/
src/test/java/de/juplo/kafka/chat/backend/TestClient.java
+++ b/
src/test/java/de/juplo/kafka/chat/backend/TestClient.java
@@
-10,6
+10,7
@@
import reactor.core.publisher.Mono;
import reactor.util.retry.Retry;
import java.time.Duration;
+import java.util.concurrent.ThreadLocalRandom;
@Slf4j
@@
-31,6
+32,14
@@
public class TestClient
message,
chatRoom));
}
+ try
+ {
+ Thread.sleep(ThreadLocalRandom.current().nextLong(700, 1000));
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException(e);
+ }
}
}