summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-10-22 00:14:20 +0200
committerChristian Grothoff <christian@grothoff.org>2022-10-22 00:14:20 +0200
commit6e56693071b29c1a06758f839dbba8ed63063d35 (patch)
tree53b383b319144e7122f03e06bff1dbba98b04a5b /src/testing
parent28969f415eccb7791847e3945b8599140902db8b (diff)
downloadexchange-6e56693071b29c1a06758f839dbba8ed63063d35.tar.gz
exchange-6e56693071b29c1a06758f839dbba8ed63063d35.tar.bz2
exchange-6e56693071b29c1a06758f839dbba8ed63063d35.zip
-add missing asserts, fix logic issue
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_deposit.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/testing/testing_api_cmd_deposit.c b/src/testing/testing_api_cmd_deposit.c
index e48fec36d..f66947678 100644
--- a/src/testing/testing_api_cmd_deposit.c
+++ b/src/testing/testing_api_cmd_deposit.c
@@ -709,15 +709,19 @@ TALER_TESTING_cmd_deposit_with_ref (const char *label,
GNUNET_assert (0);
}
ds->wallet_timestamp = GNUNET_TIME_timestamp_get ();
- json_object_set_new (ds->contract_terms,
- "timestamp",
- GNUNET_JSON_from_timestamp (ds->wallet_timestamp));
+ GNUNET_assert (0 ==
+ json_object_set_new (ds->contract_terms,
+ "timestamp",
+ GNUNET_JSON_from_timestamp (
+ ds->wallet_timestamp)));
if (0 != refund_deadline.rel_value_us)
{
ds->refund_deadline = GNUNET_TIME_relative_to_timestamp (refund_deadline);
- json_object_set_new (ds->contract_terms,
- "refund_deadline",
- GNUNET_JSON_from_timestamp (ds->refund_deadline));
+ GNUNET_assert (0 ==
+ json_object_set_new (ds->contract_terms,
+ "refund_deadline",
+ GNUNET_JSON_from_timestamp (
+ ds->refund_deadline)));
}
GNUNET_assert (GNUNET_OK ==
TALER_string_to_amount (amount,