aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-18 13:39:01 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-18 13:39:01 +0000
commit6a327b51613a52e4f1341a0ddaa3946d3810d1fd (patch)
tree7716e9d044aff16b17bee25484c1af9902b8860b /src
parent4217ac4cb6ad2dd900326d51163a4770d59596d4 (diff)
downloadgnunet-6a327b51613a52e4f1341a0ddaa3946d3810d1fd.tar.gz
gnunet-6a327b51613a52e4f1341a0ddaa3946d3810d1fd.zip
-do not use expired records, they'll be removed internally now
Diffstat (limited to 'src')
-rw-r--r--src/namestore/test_namestore_api_lookup_public.c2
-rw-r--r--src/namestore/test_namestore_api_store_update.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_lookup_public.c b/src/namestore/test_namestore_api_lookup_public.c
index a119e34d6..42f8fe401 100644
--- a/src/namestore/test_namestore_api_lookup_public.c
+++ b/src/namestore/test_namestore_api_lookup_public.c
@@ -206,7 +206,7 @@ run (void *cls,
206 GNUNET_CRYPTO_ecdsa_key_get_public (privkey, &pubkey); 206 GNUNET_CRYPTO_ecdsa_key_get_public (privkey, &pubkey);
207 207
208 208
209 rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; 209 rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us + 1000000000;
210 rd.record_type = TEST_RECORD_TYPE; 210 rd.record_type = TEST_RECORD_TYPE;
211 rd.data_size = TEST_RECORD_DATALEN; 211 rd.data_size = TEST_RECORD_DATALEN;
212 rd.data = GNUNET_malloc (TEST_RECORD_DATALEN); 212 rd.data = GNUNET_malloc (TEST_RECORD_DATALEN);
diff --git a/src/namestore/test_namestore_api_store_update.c b/src/namestore/test_namestore_api_store_update.c
index edc11067d..b68d59a6b 100644
--- a/src/namestore/test_namestore_api_store_update.c
+++ b/src/namestore/test_namestore_api_store_update.c
@@ -147,7 +147,7 @@ rd_decrypt_cb (void *cls,
147 "Block was decrypted successfully, updating record \n"); 147 "Block was decrypted successfully, updating record \n");
148 148
149 rd_new.flags = GNUNET_GNSRECORD_RF_NONE; 149 rd_new.flags = GNUNET_GNSRECORD_RF_NONE;
150 rd_new.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; 150 rd_new.expiration_time = GNUNET_TIME_absolute_get().abs_value_us + 1000000000;
151 rd_new.record_type = TEST_RECORD_TYPE2; 151 rd_new.record_type = TEST_RECORD_TYPE2;
152 rd_new.data_size = TEST_RECORD_DATALEN2; 152 rd_new.data_size = TEST_RECORD_DATALEN2;
153 rd_new.data = GNUNET_malloc (TEST_RECORD_DATALEN2); 153 rd_new.data = GNUNET_malloc (TEST_RECORD_DATALEN2);
@@ -245,7 +245,7 @@ run (void *cls,
245 GNUNET_CRYPTO_ecdsa_key_get_public (privkey, &pubkey); 245 GNUNET_CRYPTO_ecdsa_key_get_public (privkey, &pubkey);
246 246
247 rd.flags = GNUNET_GNSRECORD_RF_NONE; 247 rd.flags = GNUNET_GNSRECORD_RF_NONE;
248 rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; 248 rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us + 1000000000;
249 rd.record_type = TEST_RECORD_TYPE; 249 rd.record_type = TEST_RECORD_TYPE;
250 rd.data_size = TEST_RECORD_DATALEN; 250 rd.data_size = TEST_RECORD_DATALEN;
251 rd.data = GNUNET_malloc (TEST_RECORD_DATALEN); 251 rd.data = GNUNET_malloc (TEST_RECORD_DATALEN);