print stat
[oweals/gnunet.git] / src / dht / test_dht_twopeer_put_get.c
index cf5291346033c5c5c456cdacd863a4500966b118..197a0500630211f7c71840b9eb47e529a2e4e5ab 100644 (file)
 #include "platform.h"
 #include "gnunet_testing_lib.h"
 #include "gnunet_core_service.h"
-#include "gnunet_dht_service_new.h"
+#include "gnunet_dht_service.h"
 #include "block_dns.h"
 #include "gnunet_signatures.h"
 
 /* DEFINES */
-#define VERBOSE GNUNET_YES
+#define VERBOSE GNUNET_NO
 
 /* Timeout for entire testcase */
 #define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5)
@@ -254,10 +254,10 @@ put_finished (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
   memset (&key, 42, sizeof (GNUNET_HashCode));  /* Set the key to the same thing as when data was inserted */
   global_get_handle =
-      GNUNET_DHT_get_start (peer2dht, GNUNET_TIME_relative_get_forever (),
-                            GNUNET_BLOCK_TYPE_TEST,
-                            &key, 1, GNUNET_DHT_RO_NONE,
-                            NULL, 0, &get_result_iterator, NULL);
+    GNUNET_DHT_get_start (peer2dht, GNUNET_TIME_UNIT_FOREVER_REL,
+                         GNUNET_BLOCK_TYPE_TEST,
+                         &key, 1, GNUNET_DHT_RO_NONE,
+                         NULL, 0, &get_result_iterator, NULL);
 }