From d07dddc7d62538c0e087c2a938051cc731b4388a Mon Sep 17 00:00:00 2001 From: Julius Bünger Date: Sun, 7 Jan 2018 23:51:06 +0100 Subject: rps tests: possibly end non-churn-tests before timeout --- src/rps/test_rps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rps/test_rps.c') diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index 3551eb184..4d6f1bfd1 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c @@ -801,8 +801,9 @@ default_reply_handle (void *cls, rps_peer->num_recv_ids++; } - if (0 == evaluate ()) + if (0 == evaluate () && 0 != strncmp (cur_test_run.name, "test-rps-churn", 14)) { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Test succeeded before timeout\n"); GNUNET_assert (NULL != shutdown_task); GNUNET_SCHEDULER_cancel (shutdown_task); shutdown_task = GNUNET_SCHEDULER_add_now (&shutdown_op, NULL); -- cgit v1.2.3