From 6a327b51613a52e4f1341a0ddaa3946d3810d1fd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 18 Oct 2013 13:39:01 +0000 Subject: [PATCH] -do not use expired records, they'll be removed internally now --- src/namestore/test_namestore_api_lookup_public.c | 2 +- src/namestore/test_namestore_api_store_update.c | 4 ++-- 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, GNUNET_CRYPTO_ecdsa_key_get_public (privkey, &pubkey); - rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; + rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us + 1000000000; rd.record_type = TEST_RECORD_TYPE; rd.data_size = TEST_RECORD_DATALEN; 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, "Block was decrypted successfully, updating record \n"); rd_new.flags = GNUNET_GNSRECORD_RF_NONE; - rd_new.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; + rd_new.expiration_time = GNUNET_TIME_absolute_get().abs_value_us + 1000000000; rd_new.record_type = TEST_RECORD_TYPE2; rd_new.data_size = TEST_RECORD_DATALEN2; rd_new.data = GNUNET_malloc (TEST_RECORD_DATALEN2); @@ -245,7 +245,7 @@ run (void *cls, GNUNET_CRYPTO_ecdsa_key_get_public (privkey, &pubkey); rd.flags = GNUNET_GNSRECORD_RF_NONE; - rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; + rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us + 1000000000; rd.record_type = TEST_RECORD_TYPE; rd.data_size = TEST_RECORD_DATALEN; rd.data = GNUNET_malloc (TEST_RECORD_DATALEN); -- 2.25.1