aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_api_lookup.c')
-rw-r--r--src/namestore/test_namestore_api_lookup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_lookup.c b/src/namestore/test_namestore_api_lookup.c
index 702fb2db1..9ed2c83c1 100644
--- a/src/namestore/test_namestore_api_lookup.c
+++ b/src/namestore/test_namestore_api_lookup.c
@@ -28,8 +28,6 @@
28#include "namestore.h" 28#include "namestore.h"
29#include "gnunet_signatures.h" 29#include "gnunet_signatures.h"
30 30
31#define VERBOSE GNUNET_NO
32
33#define RECORDS 5 31#define RECORDS 5
34 32
35#define TEST_RECORD_TYPE 1234 33#define TEST_RECORD_TYPE 1234
@@ -120,6 +118,7 @@ name_lookup_proc (void *cls,
120 { 118 {
121 GNUNET_break (0); 119 GNUNET_break (0);
122 } 120 }
121 GNUNET_assert (NULL != signature);
123 if (0 != memcmp (signature, s_signature, sizeof (struct GNUNET_CRYPTO_RsaSignature))) 122 if (0 != memcmp (signature, s_signature, sizeof (struct GNUNET_CRYPTO_RsaSignature)))
124 { 123 {
125 GNUNET_break (0); 124 GNUNET_break (0);
@@ -184,7 +183,7 @@ create_record (unsigned int count)
184 rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); 183 rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData));
185 for (c = 0; c < count; c++) 184 for (c = 0; c < count; c++)
186 { 185 {
187 rd[c].expiration_time = GNUNET_TIME_absolute_get().abs_value; 186 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value;
188 rd[c].record_type = TEST_RECORD_TYPE; 187 rd[c].record_type = TEST_RECORD_TYPE;
189 rd[c].data_size = TEST_RECORD_DATALEN; 188 rd[c].data_size = TEST_RECORD_DATALEN;
190 rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); 189 rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN);