From 80d23a0a6185efb1429c0b004f48b0c7b631257a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 25 Sep 2015 11:51:19 +0930 Subject: [PATCH] test/test_state_coverage: traverse main state loop less. By terminating in either NORMAL state, we halve the time to run the coverage test. Before: real 0m50.083s After: real 0m28.548s Signed-off-by: Rusty Russell --- test/test_state_coverage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_state_coverage.c b/test/test_state_coverage.c index 602fd022d..82823cabe 100644 --- a/test/test_state_coverage.c +++ b/test/test_state_coverage.c @@ -1620,6 +1620,7 @@ static struct trail *try_input(const struct state_data *sdata, */ if (effect->defer != INPUT_NONE || newstate == STATE_NORMAL_LOWPRIO + || newstate == STATE_NORMAL_HIGHPRIO || i == BITCOIN_ANCHOR_OTHERSPEND || i == BITCOIN_ANCHOR_THEIRSPEND || quick) {