[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-donau] branch master updated: fix db test
From: |
gnunet |
Subject: |
[taler-donau] branch master updated: fix db test |
Date: |
Mon, 15 Apr 2024 16:29:17 +0200 |
This is an automated email from the git hooks/post-receive script.
johannes-casaburi pushed a commit to branch master
in repository donau.
The following commit(s) were added to refs/heads/master by this push:
new fa7447b fix db test
fa7447b is described below
commit fa7447bafeeb490b7029545f0d9bebbcc29c865f
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
AuthorDate: Mon Apr 15 16:28:44 2024 +0200
fix db test
---
src/donaudb/test_donaudb.c | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/donaudb/test_donaudb.c b/src/donaudb/test_donaudb.c
index 74610f9..16a3122 100644
--- a/src/donaudb/test_donaudb.c
+++ b/src/donaudb/test_donaudb.c
@@ -75,6 +75,7 @@ static void
run (void *cls)
{
struct GNUNET_CONFIGURATION_Handle *cfg = cls;
+ struct GNUNET_TIME_Timestamp now;
// Charity information
json_t *charities;
@@ -93,8 +94,8 @@ run (void *cls)
struct TALER_Amount du_value;
// Signing key information
- struct DONAU_DonauPublicKeyP donau_pubkey;
- struct SigningKey *sk;
+ struct DONAU_DonauPublicKeyP donau_pub;
+ struct DONAUDB_SignkeyMetaData sk_meta;
if (NULL ==
(plugin = DONAUDB_plugin_load (cfg)))
@@ -174,16 +175,16 @@ run (void *cls)
NULL));
/* test insert signing key */
- RND_BLK (&donau_pubkey);
- sk->donau_pub = donau_pubkey;
- sk->meta.expire_legal
- sk->meta.expire_sign
- sk->meta.valid_from
+ RND_BLK (&donau_pub);
+ now = GNUNET_TIME_timestamp_get ();
+ sk_meta.expire_legal = now;
+ sk_meta.expire_sign = now;
+ sk_meta.valid_from = now;
FAILIF (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS !=
plugin->insert_signing_key (plugin->cls,
- &sk->donau_pub,
- &sk->meta));
+ &donau_pub,
+ &sk_meta));
/* test iterate signing key */
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-donau] branch master updated: fix db test,
gnunet <=