aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_zone_iteration_stop.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-07 12:45:04 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-07 12:45:04 +0000
commitab3c2a6c36e4f0f78ccd082b731262d637d819d3 (patch)
treec7cede937bba981ae118ba4112be5d05ec5a7a73 /src/namestore/test_namestore_api_zone_iteration_stop.c
parentcf9c46282c0a339cb08c145340f22f31be6519da (diff)
downloadgnunet-ab3c2a6c36e4f0f78ccd082b731262d637d819d3.tar.gz
gnunet-ab3c2a6c36e4f0f78ccd082b731262d637d819d3.zip
namestore api change: include block expiration time in record create
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_stop.c')
-rw-r--r--src/namestore/test_namestore_api_zone_iteration_stop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c
index 36a08d7db..0b4917855 100644
--- a/src/namestore/test_namestore_api_zone_iteration_stop.c
+++ b/src/namestore/test_namestore_api_zone_iteration_stop.c
@@ -28,7 +28,7 @@
28 28
29#define VERBOSE GNUNET_NO 29#define VERBOSE GNUNET_NO
30 30
31#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) 31#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15)
32 32
33static struct GNUNET_NAMESTORE_Handle * nsh; 33static struct GNUNET_NAMESTORE_Handle * nsh;
34 34
@@ -430,7 +430,7 @@ run (void *cls, char *const *args, const char *cfgfile,
430 GNUNET_asprintf(&s_name_1, "dummy1"); 430 GNUNET_asprintf(&s_name_1, "dummy1");
431 s_rd_1 = create_record(1); 431 s_rd_1 = create_record(1);
432 sig_1 = GNUNET_NAMESTORE_create_signature(privkey, s_name_1, s_rd_1, 1); 432 sig_1 = GNUNET_NAMESTORE_create_signature(privkey, s_name_1, s_rd_1, 1);
433 GNUNET_NAMESTORE_record_create(nsh, privkey, s_name_1, s_rd_1, &put_cont, NULL); 433 GNUNET_NAMESTORE_record_create(nsh, privkey, GNUNET_TIME_absolute_get_forever(), s_name_1, s_rd_1, &put_cont, NULL);
434 434
435 435
436 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created record 2 \n"); 436 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created record 2 \n");
@@ -438,7 +438,7 @@ run (void *cls, char *const *args, const char *cfgfile,
438 s_rd_2 = create_record(1); 438 s_rd_2 = create_record(1);
439 439
440 sig_2 = GNUNET_NAMESTORE_create_signature(privkey, s_name_2, s_rd_2, 1); 440 sig_2 = GNUNET_NAMESTORE_create_signature(privkey, s_name_2, s_rd_2, 1);
441 GNUNET_NAMESTORE_record_create(nsh, privkey, s_name_2, s_rd_2, &put_cont, NULL); 441 GNUNET_NAMESTORE_record_create(nsh, privkey,GNUNET_TIME_absolute_get_forever(), s_name_2, s_rd_2, &put_cont, NULL);
442 442
443 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created record 3\n"); 443 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created record 3\n");
444 /* name in different zone */ 444 /* name in different zone */