gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet-scheme] 06/06: tests/distributed-hash-table: Randomise expiratio


From: gnunet
Subject: [gnunet-scheme] 06/06: tests/distributed-hash-table: Randomise expiration time.
Date: Sat, 29 Jan 2022 20:59:38 +0100

This is an automated email from the git hooks/post-receive script.

maxime-devos pushed a commit to branch master
in repository gnunet-scheme.

commit 1ebfca15d5796970badbae80d214226daed6a6f5
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sat Jan 29 19:55:02 2022 +0000

    tests/distributed-hash-table: Randomise expiration time.
    
    This makes test cases a little more interesting.
    
    * tests/distributed-hash-table.scm (make-a-datum): Randomise the
      default value of 'expiration'.
---
 tests/distributed-hash-table.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/distributed-hash-table.scm b/tests/distributed-hash-table.scm
index 0e45e66..cc6b8b8 100644
--- a/tests/distributed-hash-table.scm
+++ b/tests/distributed-hash-table.scm
@@ -124,7 +124,7 @@
                       (type 0)
                       (key (make-slice/read-write* (sizeof /hashcode:512 '())))
                       (value (make-slice/read-write 0))
-                      (expiration 0))
+                      (expiration (random (expt 2 64))))
   (make-datum type key value #:expiration expiration))
 (test-assert "datum?"
   (datum? (make-a-datum)))

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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