summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_reserve_get.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-11-17 16:58:38 +0100
committerChristian Grothoff <christian@grothoff.org>2022-11-17 16:58:50 +0100
commit3d4baa996936b55b595d4f2f619ce47472a21d10 (patch)
treed36b08d9e0bd41d46fdcf1ebeb1039af046761c2 /src/testing/testing_api_cmd_reserve_get.c
parent8e0f06c86bdc6880bc24334e65b7920c8310ecdd (diff)
downloadexchange-3d4baa996936b55b595d4f2f619ce47472a21d10.tar.gz
exchange-3d4baa996936b55b595d4f2f619ce47472a21d10.tar.bz2
exchange-3d4baa996936b55b595d4f2f619ce47472a21d10.zip
-code cleanup
Diffstat (limited to 'src/testing/testing_api_cmd_reserve_get.c')
-rw-r--r--src/testing/testing_api_cmd_reserve_get.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/testing/testing_api_cmd_reserve_get.c b/src/testing/testing_api_cmd_reserve_get.c
index f9b8ff6cd..22c29a3be 100644
--- a/src/testing/testing_api_cmd_reserve_get.c
+++ b/src/testing/testing_api_cmd_reserve_get.c
@@ -183,13 +183,7 @@ status_run (void *cls,
create_reserve
= TALER_TESTING_interpreter_lookup_command (is,
ss->reserve_reference);
-
- if (NULL == create_reserve)
- {
- GNUNET_break (0);
- TALER_TESTING_interpreter_fail (is);
- return;
- }
+ GNUNET_assert (NULL != create_reserve);
if (GNUNET_OK !=
TALER_TESTING_get_trait_reserve_pub (create_reserve,
&ss->reserve_pubp))
@@ -328,6 +322,7 @@ finish_run (void *cls,
poll_reserve
= TALER_TESTING_interpreter_lookup_command (is,
ps->poll_reference);
+ GNUNET_assert (NULL != poll_reserve);
GNUNET_assert (poll_reserve->run == &status_run);
ss = poll_reserve->cls;
if (NULL == ss->rsh)