diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-06-22 16:45:37 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-06-22 16:45:37 +0000 |
commit | ea582a17c1b6f9a8c5f67280d36fe836490dbc9b (patch) | |
tree | 886160e03ae67c9b2adb99bf6bac2663a2e600fd /src/dv/test_transport_api_dv.c | |
parent | 0a1e104265a6d8c773a6fb31ef3dc7605e65c750 (diff) | |
download | gnunet-ea582a17c1b6f9a8c5f67280d36fe836490dbc9b.tar.gz gnunet-ea582a17c1b6f9a8c5f67280d36fe836490dbc9b.zip |
try really long timeout for making dv testcase work
Diffstat (limited to 'src/dv/test_transport_api_dv.c')
-rw-r--r-- | src/dv/test_transport_api_dv.c | 6 |
1 files changed, 5 insertions, 1 deletions
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, | |||
321 | if ((total_messages_received == expected_messages) && (total_other_messages == 0)) | 321 | if ((total_messages_received == expected_messages) && (total_other_messages == 0)) |
322 | { | 322 | { |
323 | GNUNET_SCHEDULER_cancel (sched, die_task); | 323 | GNUNET_SCHEDULER_cancel (sched, die_task); |
324 | GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 45), &send_other_messages, NULL); | 324 | GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 420), &send_other_messages, NULL); |
325 | } | 325 | } |
326 | else if ((total_other_expected_messages > 0) && (total_other_messages == total_other_expected_messages)) | 326 | else if ((total_other_expected_messages > 0) && (total_other_messages == total_other_expected_messages)) |
327 | { | 327 | { |
@@ -622,6 +622,10 @@ send_other_messages (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc) | |||
622 | test_messages = NULL; | 622 | test_messages = NULL; |
623 | 623 | ||
624 | total_other_expected_messages = temp_total_other_messages; | 624 | total_other_expected_messages = temp_total_other_messages; |
625 | if (total_other_expected_messages == 0) | ||
626 | { | ||
627 | GNUNET_SCHEDULER_add_now (sched, &end_badly, "send_other_messages had 0 messages to send, no DV connections made!"); | ||
628 | } | ||
625 | #if VERBOSE | 629 | #if VERBOSE |
626 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Preparing to send %d other test messages\n", total_other_expected_messages); | 630 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Preparing to send %d other test messages\n", total_other_expected_messages); |
627 | #endif | 631 | #endif |