aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup_specific_type.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_specific_type.c')
-rw-r--r--src/namestore/test_namestore_api_lookup_specific_type.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/namestore/test_namestore_api_lookup_specific_type.c b/src/namestore/test_namestore_api_lookup_specific_type.c
index 26f037b00..fbbf009cd 100644
--- a/src/namestore/test_namestore_api_lookup_specific_type.c
+++ b/src/namestore/test_namestore_api_lookup_specific_type.c
@@ -140,11 +140,6 @@ name_lookup_existing_record_type (void *cls,
140 GNUNET_break(0); 140 GNUNET_break(0);
141 failed = GNUNET_YES; 141 failed = GNUNET_YES;
142 } 142 }
143 if (NULL != signature)
144 {
145 GNUNET_break(0);
146 failed = GNUNET_YES;
147 }
148 if (failed == GNUNET_YES) 143 if (failed == GNUNET_YES)
149 { 144 {
150 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Namestore returned invalid response\n"); 145 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Namestore returned invalid response\n");
@@ -254,13 +249,13 @@ create_record (unsigned int count)
254 rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); 249 rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData));
255 for (c = 0; c < count-1; c++) 250 for (c = 0; c < count-1; c++)
256 { 251 {
257 rd[c].expiration_time = 0; 252 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value;
258 rd[c].record_type = 1; 253 rd[c].record_type = 1;
259 rd[c].data_size = TEST_RECORD_DATALEN; 254 rd[c].data_size = TEST_RECORD_DATALEN;
260 rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); 255 rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN);
261 memset ((char *) rd[c].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); 256 memset ((char *) rd[c].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN);
262 } 257 }
263 rd[c].expiration_time = GNUNET_TIME_absolute_get().abs_value; 258 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value;
264 rd[c].record_type = TEST_RECORD_LOOKUP_TYPE_EXISTING; 259 rd[c].record_type = TEST_RECORD_LOOKUP_TYPE_EXISTING;
265 rd[c].data_size = TEST_RECORD_DATALEN; 260 rd[c].data_size = TEST_RECORD_DATALEN;
266 rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); 261 rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN);