summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_exec_closer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_exec_closer.c b/src/testing/testing_api_cmd_exec_closer.c
index 811bf1b8a..783696996 100644
--- a/src/testing/testing_api_cmd_exec_closer.c
+++ b/src/testing/testing_api_cmd_exec_closer.c
@@ -237,6 +237,13 @@ TALER_TESTING_cmd_exec_closer (const char *label,
label);
GNUNET_assert (0);
}
+ /* expected amount includes fee, while our argument
+ gives the amount _without_ the fee. So add the fee. */
+ GNUNET_assert (GNUNET_OK ==
+ 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;
}
{