Browse Source

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

My temporary machine is incredibly slow.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
44282eed16
  1. 8
      daemon/test/test.sh

8
daemon/test/test.sh

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

Loading…
Cancel
Save