From 5f5ad793e95d296872286f15c779db1890ac883e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 8 Nov 2016 21:54:55 +1030 Subject: [PATCH] test: fix unreliable test on slow machines. Signed-off-by: Rusty Russell --- daemon/test/test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/test/test.sh b/daemon/test/test.sh index 9cd89fd9a..988dda3b0 100755 --- a/daemon/test/test.sh +++ b/daemon/test/test.sh @@ -724,7 +724,9 @@ if [ -n "$MANUALCOMMIT" ]; then fi [ ! -n "$MANUALCOMMIT" ] || lcli1 dev-commit $ID2 -check lcli1 "getlog debug | $FGREP 'Both committed to FULFILL of our HTLC'" +# If we're very slow, manually committed above, and we're restarting, +# we may restart *after* this and thus not see it in the log. +[ "$RECONNECT$MANUALCOMMIT" = restart1 ] || check lcli1 "getlog debug | $FGREP 'Both committed to FULFILL of our HTLC'" check lcli2 "getlog debug | $FGREP 'Both committed to FULFILL of their HTLC'" # We've transferred the HTLC amount to 2, who now has to pay fees,