[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: fix db testcase due
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: fix db testcase due to queries in the future |
Date: |
Tue, 18 Apr 2017 16:31:44 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 9cfcd98 fix db testcase due to queries in the future
9cfcd98 is described below
commit 9cfcd98a186913e6c731854e191da16ee048712b
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Apr 18 16:31:34 2017 +0200
fix db testcase due to queries in the future
---
src/backenddb/plugin_merchantdb_postgres.c | 1 +
src/backenddb/test_merchantdb.c | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c
b/src/backenddb/plugin_merchantdb_postgres.c
index 25c997a..f0e9138 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -18,6 +18,7 @@
* @brief database helper functions for postgres used by the merchant
* @author Sree Harsha Totakura <address@hidden>
* @author Christian Grothoff
+ * @author Marcello Stanisci
*/
#include "platform.h"
#include <gnunet/gnunet_util_lib.h>
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
index 3b95f27..c65f800 100644
--- a/src/backenddb/test_merchantdb.c
+++ b/src/backenddb/test_merchantdb.c
@@ -404,7 +404,9 @@ run (void *cls)
timestamp,
proposal_data));
- FAILIF (1 !=
+ fake_now = GNUNET_TIME_absolute_subtract (timestamp, delta);
+
+ FAILIF (2 !=
plugin->find_proposal_data_by_date_and_range (plugin->cls,
fake_now,
&merchant_pub,
@@ -414,7 +416,7 @@ run (void *cls)
pd_cb,
NULL));
- FAILIF (1 !=
+ FAILIF (0 !=
plugin->find_proposal_data_by_date (plugin->cls,
fake_now,
&merchant_pub,
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: fix db testcase due to queries in the future,
gnunet <=