From 237970e5a4e604e1d6accbad0a924ac74041d341 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Fri, 4 Nov 2022 12:21:17 -0400 Subject: [PATCH] Add sleeps Signed-off-by: Byron Ruth --- examples/jetstream/leader-failure/cli/main.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/jetstream/leader-failure/cli/main.sh b/examples/jetstream/leader-failure/cli/main.sh index ce379738..4b0c4315 100644 --- a/examples/jetstream/leader-failure/cli/main.sh +++ b/examples/jetstream/leader-failure/cli/main.sh @@ -145,6 +145,8 @@ nats stream list # Force a step down of the leader. nats stream cluster step-down ORDERS +sleep 2 + # Report the new leader. nats --user sys --password sys server report jetstream @@ -171,6 +173,8 @@ case $LEADER in ;; esac +sleep 2 + # Publish more messages. nats req orders --count=100 'Message {{Count}}'