aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_purse_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_purse_get.c
parent8e0f06c86bdc6880bc24334e65b7920c8310ecdd (diff)
downloadexchange-3d4baa996936b55b595d4f2f619ce47472a21d10.tar.xz
-code cleanup
Diffstat (limited to 'src/testing/testing_api_cmd_purse_get.c')
-rw-r--r--src/testing/testing_api_cmd_purse_get.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/testing/testing_api_cmd_purse_get.c b/src/testing/testing_api_cmd_purse_get.c
index 61873721b..3e7da38f0 100644
--- a/src/testing/testing_api_cmd_purse_get.c
+++ b/src/testing/testing_api_cmd_purse_get.c
@@ -188,13 +188,7 @@ status_run (void *cls,
create_purse
= TALER_TESTING_interpreter_lookup_command (is,
ss->purse_reference);
-
- if (NULL == create_purse)
- {
- GNUNET_break (0);
- TALER_TESTING_interpreter_fail (is);
- return;
- }
+ GNUNET_assert (NULL != create_purse);
if (GNUNET_OK !=
TALER_TESTING_get_trait_purse_pub (create_purse,
&ss->purse_pub))
@@ -311,6 +305,7 @@ finish_run (void *cls,
poll_purse
= TALER_TESTING_interpreter_lookup_command (is,
ps->poll_reference);
+ GNUNET_assert (NULL != poll_purse);
GNUNET_assert (poll_purse->run == &status_run);
ss = poll_purse->cls;
if (NULL == ss->pgh)