From 2721b4b2331b900381f2e6b550d9a664f5fcd2ad Mon Sep 17 00:00:00 2001 From: Matt Peterson Date: Thu, 18 Jul 2024 08:26:15 -0600 Subject: [PATCH] fix:substituted variable here Signed-off-by: Matt Peterson --- server/src/test/resources/producer.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/test/resources/producer.sh b/server/src/test/resources/producer.sh index 9d9345f47..593b79abe 100755 --- a/server/src/test/resources/producer.sh +++ b/server/src/test/resources/producer.sh @@ -42,15 +42,16 @@ trap cleanup SIGINT # Response messages from the gRPC server are printed to stdout. ( iter=$1 + block_items=10 while true; do # Generate 10 BlockItems per Block - for ((i=1; i<=10; i++)) + for ((i=1; i<=$block_items; i++)) do if [[ $i -eq 1 ]]; then echo "{\"block_item\": {\"header\": {\"block_number\": $iter},\"value\": \"Payload[...]\"}}" - elif [[ $i -eq 10 ]]; then + elif [[ $i -eq $block_items ]]; then echo "{\"block_item\": {\"state_proof\": {\"block\": $iter},\"value\": \"Payload[...]\"}}" else echo "{\"block_item\": {\"start_event\": {\"creator_id\": $i},\"value\": \"Payload[...]\"}}"