merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 9cfcd98a186913e6c731854e191da16ee048712b
parent c5cad65c87b7e41f2549c6ba83be6714f290e0dc
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Tue, 18 Apr 2017 16:31:34 +0200

fix db testcase due to queries in the future

Diffstat:
Msrc/backenddb/plugin_merchantdb_postgres.c | 1+
Msrc/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 @@ -18,6 +18,7 @@ * @brief database helper functions for postgres used by the merchant * @author Sree Harsha Totakura <sreeharsha@totakura.in> * @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 @@ -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,