diff options
Diffstat (limited to 'src/testing/testing_api_cmd_exec_closer.c')
-rw-r--r-- | src/testing/testing_api_cmd_exec_closer.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/testing/testing_api_cmd_exec_closer.c b/src/testing/testing_api_cmd_exec_closer.c index 442fb4ce0..2501b39a6 100644 --- a/src/testing/testing_api_cmd_exec_closer.c +++ b/src/testing/testing_api_cmd_exec_closer.c @@ -49,7 +49,7 @@ struct CloserState * expect_close is true. Will be of type * #TALER_EXCHANGE_RTT_RESERVE_CLOSED. */ - struct TALER_EXCHANGE_ReserveHistory reserve_history; + struct TALER_EXCHANGE_ReserveHistoryEntry reserve_history; /** * If the closer filled a reserve (@e expect_close is set), this is set to @@ -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 = { |