Skip to content

Commit 237970e

Browse files
committed
Add sleeps
Signed-off-by: Byron Ruth <[email protected]>
1 parent 5bf34c7 commit 237970e

File tree

1 file changed

+4
-0
lines changed
  • examples/jetstream/leader-failure/cli

1 file changed

+4
-0
lines changed

examples/jetstream/leader-failure/cli/main.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ nats stream list
145145
# Force a step down of the leader.
146146
nats stream cluster step-down ORDERS
147147

148+
sleep 2
149+
148150
# Report the new leader.
149151
nats --user sys --password sys server report jetstream
150152

@@ -171,6 +173,8 @@ case $LEADER in
171173
;;
172174
esac
173175

176+
sleep 2
177+
174178
# Publish more messages.
175179
nats req orders --count=100 'Message {{Count}}'
176180

0 commit comments

Comments
 (0)