rps tests: possibly end non-churn-tests before timeout gnunet-0.11.0rc0
authorJulius Bünger <buenger@mytum.de>
Sun, 7 Jan 2018 22:51:06 +0000 (23:51 +0100)
committerJulius Bünger <buenger@mytum.de>
Mon, 8 Jan 2018 10:02:43 +0000 (11:02 +0100)
src/rps/test_rps.c

index 3551eb184342bde99138634a7d1aeab67d78176b..4d6f1bfd1fedd0ee9fdce3e17eacf3445d0719db 100644 (file)
@@ -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);