diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-11-01 06:00:02 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-11-05 10:37:37 +0100 |
commit | a8f32e3afddd1aa04200e89caff1d2fde5c97ff6 (patch) | |
tree | 607990e43c6027e1bc317a0c0156c9a96fde16f1 | |
parent | 32cdf6b58041bd35f7f471cd1b34f5be921428a5 (diff) |
working through auditors
-rw-r--r-- | src/auditordb/test_auditordb.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c index d7f1a2262..a1518788c 100644 --- 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)) |