aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_twopeer.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-07-20 15:13:06 +0000
committerNathan S. Evans <evans@in.tum.de>2010-07-20 15:13:06 +0000
commita27eb5beb5872854d2f7ff540a28019eaa83da70 (patch)
tree261583c14adb7c927bcafb4531a92e4275002d67 /src/dht/test_dht_twopeer.c
parent27ee160b9c2bfd30a192db7f86585da8bc34e1cd (diff)
downloadgnunet-a27eb5beb5872854d2f7ff540a28019eaa83da70.tar.gz
gnunet-a27eb5beb5872854d2f7ff540a28019eaa83da70.zip
add testcases to run on make check, fix dht a bit
Diffstat (limited to 'src/dht/test_dht_twopeer.c')
-rw-r--r--src/dht/test_dht_twopeer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/test_dht_twopeer.c b/src/dht/test_dht_twopeer.c
index c9ceca1f8..095bc7cb7 100644
--- a/src/dht/test_dht_twopeer.c
+++ b/src/dht/test_dht_twopeer.c
@@ -154,7 +154,7 @@ void get_result_iterator (void *cls,
154 struct PeerGetContext *get_context = cls; 154 struct PeerGetContext *get_context = cls;
155 if (0 != memcmp(&get_context->peer->hashPubKey, key, sizeof (GNUNET_HashCode))) 155 if (0 != memcmp(&get_context->peer->hashPubKey, key, sizeof (GNUNET_HashCode)))
156 { 156 {
157 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Key returned is not the same key as was searched for!\n"); 157 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Key returned is not the same key as was searched for!\n");
158 GNUNET_SCHEDULER_cancel(sched, die_task); 158 GNUNET_SCHEDULER_cancel(sched, die_task);
159 GNUNET_SCHEDULER_add_now(sched, &end_badly, "key mismatch in get response!\n"); 159 GNUNET_SCHEDULER_add_now(sched, &end_badly, "key mismatch in get response!\n");
160 return; 160 return;
@@ -182,7 +182,7 @@ do_get (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
182{ 182{
183 struct PeerGetContext *get_context = cls; 183 struct PeerGetContext *get_context = cls;
184 184
185 get_context->get_handle = GNUNET_DHT_get_start(get_context->dht_handle, GNUNET_TIME_relative_get_forever(), 130, &get_context->peer->hashPubKey, &get_result_iterator, get_context, NULL, NULL); 185 get_context->get_handle = GNUNET_DHT_get_start(get_context->dht_handle, GNUNET_TIME_relative_get_forever(), 0, &get_context->peer->hashPubKey, &get_result_iterator, get_context, NULL, NULL);
186} 186}
187 187
188 188