exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit a8f32e3afddd1aa04200e89caff1d2fde5c97ff6
parent 32cdf6b58041bd35f7f471cd1b34f5be921428a5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  1 Nov 2024 06:00:02 +0100

working through auditors

Diffstat:
Msrc/auditordb/test_auditordb.c | 26++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)

diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c @@ -294,12 +294,18 @@ run (void *cls) GNUNET_assert (GNUNET_OK == TALER_string_to_amount (CURRENCY ":53.456789", &rfb.history_fee_balance)); - FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - plugin->insert_reserve_info (plugin->cls, - &reserve_pub, - &rfb, - past, - "payto://bla/blub")); + { + struct TALER_FullPayto pt = { + .full_payto = (char *) "payto://bla/blub?receiver-name=blub" + }; + + FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != + plugin->insert_reserve_info (plugin->cls, + &reserve_pub, + &rfb, + past, + pt)); + } GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test: update_reserve_info\n"); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != @@ -310,7 +316,7 @@ run (void *cls) GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test: get_reserve_info\n"); { - char *payto; + struct TALER_FullPayto payto; FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != plugin->get_reserve_info (plugin->cls, @@ -319,9 +325,9 @@ run (void *cls) &rfb2, &date, &payto)); - FAILIF (0 != strcmp (payto, - "payto://bla/blub")); - GNUNET_free (payto); + FAILIF (0 != strcmp (payto.full_payto, + "payto://bla/blub?receiver-name=blub")); + GNUNET_free (payto.full_payto); } FAILIF ( (0 != GNUNET_memcmp (&date, &future))