diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-04-28 15:20:14 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-04-28 15:20:14 +0000 |
commit | debd88a54cec6c28dc871a8b73715c26f007e52f (patch) | |
tree | 30588254ed0ecc832de74a0bebadefed7a49f2be /src/hostlist/test_gnunet_daemon_hostlist_learning.c | |
parent | 49ff98458d771c7ca047e133eadb4e7b3ee20458 (diff) | |
download | gnunet-debd88a54cec6c28dc871a8b73715c26f007e52f.tar.gz gnunet-debd88a54cec6c28dc871a8b73715c26f007e52f.zip |
changed to work better on slow machines
Diffstat (limited to 'src/hostlist/test_gnunet_daemon_hostlist_learning.c')
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist_learning.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index ab7465dc1..3098844e9 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c | |||
@@ -38,7 +38,7 @@ | |||
38 | /** | 38 | /** |
39 | * How long until wait until testcases fails | 39 | * How long until wait until testcases fails |
40 | */ | 40 | */ |
41 | #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60) | 41 | #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 240) |
42 | #define CHECK_INTERVALL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1) | 42 | #define CHECK_INTERVALL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1) |
43 | 43 | ||
44 | static int timeout; | 44 | static int timeout; |
@@ -410,10 +410,7 @@ run (void *cls, | |||
410 | learned_hostlist_downloaded = GNUNET_NO; | 410 | learned_hostlist_downloaded = GNUNET_NO; |
411 | 411 | ||
412 | sched = s; | 412 | sched = s; |
413 | timeout_task = GNUNET_SCHEDULER_add_delayed (sched, | 413 | |
414 | TIMEOUT, | ||
415 | &timeout_error, | ||
416 | NULL); | ||
417 | check_task = GNUNET_SCHEDULER_add_delayed (sched, | 414 | check_task = GNUNET_SCHEDULER_add_delayed (sched, |
418 | CHECK_INTERVALL, | 415 | CHECK_INTERVALL, |
419 | &check_statistics, | 416 | &check_statistics, |
@@ -421,6 +418,10 @@ run (void *cls, | |||
421 | 418 | ||
422 | setup_adv_peer (&adv_peer, "test_learning_adv_peer.conf"); | 419 | setup_adv_peer (&adv_peer, "test_learning_adv_peer.conf"); |
423 | setup_learn_peer (&learn_peer, "test_learning_learn_peer.conf"); | 420 | setup_learn_peer (&learn_peer, "test_learning_learn_peer.conf"); |
421 | timeout_task = GNUNET_SCHEDULER_add_delayed (sched, | ||
422 | TIMEOUT, | ||
423 | &timeout_error, | ||
424 | NULL); | ||
424 | } | 425 | } |
425 | 426 | ||
426 | 427 | ||