gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r34630 - gnunet/src/gns


From: gnunet
Subject: [GNUnet-SVN] r34630 - gnunet/src/gns
Date: Mon, 15 Dec 2014 19:44:47 +0100

Author: grothoff
Date: 2014-12-15 19:44:47 +0100 (Mon, 15 Dec 2014)
New Revision: 34630

Modified:
   gnunet/src/gns/test_gns_rel_expiration.sh
Log:
-fix test logic

Modified: gnunet/src/gns/test_gns_rel_expiration.sh
===================================================================
--- gnunet/src/gns/test_gns_rel_expiration.sh   2014-12-15 18:41:03 UTC (rev 
34629)
+++ gnunet/src/gns/test_gns_rel_expiration.sh   2014-12-15 18:44:47 UTC (rev 
34630)
@@ -23,11 +23,13 @@
 gnunet-namestore -p -z testego -a -n b -t PKEY -V $DELEGATED_PKEY -e never -c 
test_gns_lookup.conf
 gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e '5 s' -c 
test_gns_lookup.conf
 gnunet-arm -i gns -c test_gns_lookup.conf
-sleep 7
+# confirm that lookup currently works
+RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c 
test_gns_lookup.conf`
+# remove entry
 gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP  -e '5 s' -c 
test_gns_lookup.conf
-sleep 1
-RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c 
test_gns_lookup.conf`
+# wait for old entry with 5s 'expiration' to definitively expire
 sleep 6
+# try again, should no longer work
 RES_IP_EXP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c 
test_gns_lookup.conf`
 gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY  -e never -c 
test_gns_lookup.conf
 gnunet-identity -D testego -c test_gns_lookup.conf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]