aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_zone_iteration_specific_zone.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-05 00:37:06 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-05 00:37:06 +0200
commit1f083a4593b1f07dcf24549853963dedde7f4d02 (patch)
treee57137969a8a0cfd5af064cd063177936c6b894a /src/namestore/test_namestore_api_zone_iteration_specific_zone.c
parent324f6168c2374d7bb71c3632fb6521860d8fdfa1 (diff)
downloadgnunet-1f083a4593b1f07dcf24549853963dedde7f4d02.tar.gz
gnunet-1f083a4593b1f07dcf24549853963dedde7f4d02.zip
use real GNS record types in tests to avoid failures in new extra serialization/deserialization checking
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_specific_zone.c')
-rw-r--r--src/namestore/test_namestore_api_zone_iteration_specific_zone.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c
index 0b137cc62..a86184297 100644
--- a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c
+++ b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c
@@ -26,6 +26,9 @@
26#include "gnunet_namestore_service.h" 26#include "gnunet_namestore_service.h"
27#include "gnunet_testing_lib.h" 27#include "gnunet_testing_lib.h"
28#include "namestore.h" 28#include "namestore.h"
29#include "gnunet_dnsparser_lib.h"
30
31#define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT
29 32
30 33
31#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 100) 34#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 100)
@@ -299,7 +302,7 @@ create_record (unsigned int count)
299 for (unsigned int c = 0; c < count; c++) 302 for (unsigned int c = 0; c < count; c++)
300 { 303 {
301 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us; 304 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us;
302 rd[c].record_type = 1111; 305 rd[c].record_type = TEST_RECORD_TYPE;
303 rd[c].data_size = 50; 306 rd[c].data_size = 50;
304 rd[c].data = GNUNET_malloc(50); 307 rd[c].data = GNUNET_malloc(50);
305 rd[c].flags = 0; 308 rd[c].flags = 0;