diff options
Diffstat (limited to 'src/testing/testing_api_cmd_exec_closer.c')
-rw-r--r-- | src/testing/testing_api_cmd_exec_closer.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/testing/testing_api_cmd_exec_closer.c b/src/testing/testing_api_cmd_exec_closer.c index 57346f333..2501b39a6 100644 --- a/src/testing/testing_api_cmd_exec_closer.c +++ b/src/testing/testing_api_cmd_exec_closer.c @@ -91,6 +91,7 @@ closer_run (void *cls, rcmd = TALER_TESTING_interpreter_lookup_command (is, as->reserve_ref); + GNUNET_assert (NULL != rcmd); if (GNUNET_OK != TALER_TESTING_get_trait_reserve_pub (rcmd, &reserve_pubp)) @@ -169,7 +170,8 @@ closer_traits (void *cls, struct TALER_TESTING_Trait xtraits[] = { TALER_TESTING_make_trait_process (&as->closer_proc), TALER_TESTING_make_trait_reserve_pub (&as->reserve_pub), - TALER_TESTING_make_trait_reserve_history (&as->reserve_history), + TALER_TESTING_make_trait_reserve_history (0, + &as->reserve_history), TALER_TESTING_trait_end () }; @@ -220,11 +222,11 @@ TALER_TESTING_cmd_exec_closer (const char *label, /* expected amount includes fee, while our argument gives the amount _without_ the fee. So add the fee. */ GNUNET_assert (0 <= - TALER_amount_add (&as->reserve_history.amount, - &as->reserve_history.amount, - &as->reserve_history.details.close_details. - fee)); - as->reserve_history.type = TALER_EXCHANGE_RTT_CLOSE; + TALER_amount_add ( + &as->reserve_history.amount, + &as->reserve_history.amount, + &as->reserve_history.details.close_details.fee)); + as->reserve_history.type = TALER_EXCHANGE_RTT_CLOSING; } { struct TALER_TESTING_Command cmd = { |