[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-challenger] branch master updated: -fix DB test
From: |
gnunet |
Subject: |
[taler-challenger] branch master updated: -fix DB test |
Date: |
Sun, 07 May 2023 01:35:09 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository challenger.
The following commit(s) were added to refs/heads/master by this push:
new 709c014 -fix DB test
709c014 is described below
commit 709c014e2223a3e5137d6891966c821331f97939
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun May 7 01:35:07 2023 +0200
-fix DB test
---
src/challengerdb/plugin_challengerdb_postgres.c | 2 +-
src/challengerdb/test_challenger_db.c | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/challengerdb/plugin_challengerdb_postgres.c
b/src/challengerdb/plugin_challengerdb_postgres.c
index 894c0bc..b825145 100644
--- a/src/challengerdb/plugin_challengerdb_postgres.c
+++ b/src/challengerdb/plugin_challengerdb_postgres.c
@@ -294,7 +294,7 @@ postgres_gc (void *cls,
PREPARE (pg,
"gc_grants",
"DELETE FROM grants"
- " WHERE expiration_time < $1;");
+ " WHERE grant_expiration_time < $1;");
postgres_preflight (pg);
qs = GNUNET_PQ_eval_prepared_non_select (pg->conn,
"gc_validations",
diff --git a/src/challengerdb/test_challenger_db.c
b/src/challengerdb/test_challenger_db.c
index 46f6870..46a4a95 100644
--- a/src/challengerdb/test_challenger_db.c
+++ b/src/challengerdb/test_challenger_db.c
@@ -57,8 +57,6 @@ static void
run (void *cls)
{
struct GNUNET_CONFIGURATION_Handle *cfg = cls;
- size_t bs;
- void *b = NULL;
if (NULL == (plugin = CHALLENGER_DB_plugin_load (cfg)))
{
@@ -79,13 +77,15 @@ run (void *cls)
}
GNUNET_assert (GNUNET_OK ==
plugin->preflight (plugin->cls));
- FAILIF (0 >
- plugin->gc (plugin->cls,
- ts,
- ts));
+ {
+ struct GNUNET_TIME_Absolute ts = GNUNET_TIME_absolute_get ();
+
+ FAILIF (0 >
+ plugin->gc (plugin->cls,
+ ts));
+ }
result = 0;
drop:
- GNUNET_free (b);
GNUNET_break (GNUNET_OK ==
plugin->drop_tables (plugin->cls));
CHALLENGER_DB_plugin_unload (plugin);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-challenger] branch master updated: -fix DB test,
gnunet <=