From: Nathan S. Evans Date: Tue, 22 Jun 2010 16:45:37 +0000 (+0000) Subject: try really long timeout for making dv testcase work X-Git-Tag: initial-import-from-subversion-38251~21282 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ea582a17c1b6f9a8c5f67280d36fe836490dbc9b;p=oweals%2Fgnunet.git try really long timeout for making dv testcase work --- diff --git a/src/dv/test_transport_api_dv.c b/src/dv/test_transport_api_dv.c index e0d956e86..3cfabe237 100644 --- a/src/dv/test_transport_api_dv.c +++ b/src/dv/test_transport_api_dv.c @@ -321,7 +321,7 @@ process_mtype (void *cls, if ((total_messages_received == expected_messages) && (total_other_messages == 0)) { GNUNET_SCHEDULER_cancel (sched, die_task); - GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 45), &send_other_messages, NULL); + GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 420), &send_other_messages, NULL); } else if ((total_other_expected_messages > 0) && (total_other_messages == total_other_expected_messages)) { @@ -622,6 +622,10 @@ send_other_messages (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc) test_messages = NULL; total_other_expected_messages = temp_total_other_messages; + if (total_other_expected_messages == 0) + { + GNUNET_SCHEDULER_add_now (sched, &end_badly, "send_other_messages had 0 messages to send, no DV connections made!"); + } #if VERBOSE GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Preparing to send %d other test messages\n", total_other_expected_messages); #endif