[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.
- [gnunet-scheme] branch master updated (b8e0342 -> 1ebfca1), gnunet, 2022/01/29
- [gnunet-scheme] 02/06: dht/client: Use /dht:path-element., gnunet, 2022/01/29
- [gnunet-scheme] 04/06: tests/distributed-hash-table: Correct name of test case., gnunet, 2022/01/29
- [gnunet-scheme] 01/06: dht/client: Partially document get paths and put paths., gnunet, 2022/01/29
- [gnunet-scheme] 03/06: tests/distributed-hash-table: Randomise keys and values., gnunet, 2022/01/29
- [gnunet-scheme] 05/06: dht/client: Write a basic test for insertion., gnunet, 2022/01/29
- [gnunet-scheme] 06/06: tests/distributed-hash-table: Randomise expiration time.,
gnunet <=