test.sh: increase timeout, slow down bitcoind polling.

My temporary machine is incredibly slow.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2016-10-07 14:00:17 +10:30
parent a1f1f1eda8
commit 44282eed16

View File

@ -221,13 +221,13 @@ check()
while ! eval "$@"; do while ! eval "$@"; do
# Try making time pass for the nodes (if on mocktime), then sleeping. # Try making time pass for the nodes (if on mocktime), then sleeping.
if [ -n "$MOCKTIME" ]; then if [ -n "$MOCKTIME" ]; then
MOCKTIME=$(($MOCKTIME + 1)) MOCKTIME=$(($MOCKTIME + 5))
lcli1 dev-mocktime $MOCKTIME lcli1 dev-mocktime $MOCKTIME
lcli2 dev-mocktime $MOCKTIME lcli2 dev-mocktime $MOCKTIME
fi fi
sleep 1 sleep 1
i=$(($i + 1)) i=$(($i + 1))
if [ $i = 20 ]; then if [ $i = 30 ]; then
return 1 return 1
fi fi
done done
@ -367,7 +367,7 @@ cat > $DIR1/config <<EOF
disable-irc disable-irc
log-level=debug log-level=debug
bitcoind-regtest bitcoind-regtest
bitcoind-poll=1s bitcoind-poll=5s
deadline-blocks=5 deadline-blocks=5
min-htlc-expiry=6 min-htlc-expiry=6
bitcoin-datadir=$DATADIR bitcoin-datadir=$DATADIR
@ -379,7 +379,7 @@ cat > $DIR2/config <<EOF
disable-irc disable-irc
bitcoind-regtest bitcoind-regtest
log-level=debug log-level=debug
bitcoind-poll=1s bitcoind-poll=5s
deadline-blocks=5 deadline-blocks=5
min-htlc-expiry=6 min-htlc-expiry=6
bitcoin-datadir=$DATADIR bitcoin-datadir=$DATADIR