mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 15:04:22 +00:00
Persistence test bash fix for relative folder path
This commit is contained in:
committed by
Ethan Buchman
parent
d0229e8b1e
commit
4be3ffbe9b
@@ -82,7 +82,7 @@ for failIndex in $(seq $failsStart $failsEnd); do
|
||||
echo "* Test FailIndex $failIndex"
|
||||
# test failure at failIndex
|
||||
|
||||
bash ./test/utils/txs.sh "localhost:46657" &
|
||||
bash $(dirname $0)/txs.sh "localhost:46657" &
|
||||
start_procs 1 "$failIndex"
|
||||
|
||||
# tendermint should already have exited when it hits the fail index
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
#! /bin/bash
|
||||
set -u
|
||||
|
||||
# wait till node is up, send txs
|
||||
ADDR=$1 #="127.0.0.1:46657"
|
||||
curl -s $ADDR/status > /dev/null
|
||||
ERR=$?
|
||||
while [ "$ERR" != 0 ]; do
|
||||
sleep 1
|
||||
curl -s $ADDR/status > /dev/null
|
||||
ERR=$?
|
||||
done
|
||||
|
||||
# send a bunch of txs over a few blocks
|
||||
echo "Node is up, sending txs"
|
||||
for i in $(seq 1 5); do
|
||||
for _ in $(seq 1 100); do
|
||||
tx=$(head -c 8 /dev/urandom | hexdump -ve '1/1 "%.2X"')
|
||||
curl -s "$ADDR/broadcast_tx_async?tx=0x$tx" &> /dev/null
|
||||
done
|
||||
echo "sent 100"
|
||||
sleep 1
|
||||
done
|
||||
Reference in New Issue
Block a user