summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_delete_account.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-06-07 23:11:20 +0200
committerChristian Grothoff <christian@grothoff.org>2023-06-07 23:11:20 +0200
commit9725b7d42505d7820fea6e28a638c06b7e81f893 (patch)
treee1a3233e8f2dbe4f61a6c1d1cff4d83f98563594 /src/testing/testing_api_cmd_delete_account.c
parent0e2148d63b85025c37d4212162a522e47445acab (diff)
downloadmerchant-9725b7d42505d7820fea6e28a638c06b7e81f893.tar.gz
merchant-9725b7d42505d7820fea6e28a638c06b7e81f893.tar.bz2
merchant-9725b7d42505d7820fea6e28a638c06b7e81f893.zip
major libtalertesting API refactoring, including no longer having taler-specific logic in the test engine core
Diffstat (limited to 'src/testing/testing_api_cmd_delete_account.c')
-rw-r--r--src/testing/testing_api_cmd_delete_account.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/testing/testing_api_cmd_delete_account.c b/src/testing/testing_api_cmd_delete_account.c
index 8f1e657a..1490dc31 100644
--- a/src/testing/testing_api_cmd_delete_account.c
+++ b/src/testing/testing_api_cmd_delete_account.c
@@ -124,7 +124,7 @@ delete_account_run (void *cls,
struct DeleteAccountState *das = cls;
const struct TALER_TESTING_Command *ref;
const struct TALER_MerchantWireHashP *h_wire;
- const char **merchant_url;
+ const char *merchant_url;
das->is = is;
ref = TALER_TESTING_interpreter_lookup_command (is,
@@ -146,9 +146,9 @@ delete_account_run (void *cls,
TALER_TESTING_FAIL (is);
return;
}
- for (unsigned int i=0;i<UINT_MAX;i++)
+ for (unsigned int i = 0; i<UINT_MAX; i++)
{
- const char **payto_uri;
+ const char *payto_uri;
if (GNUNET_OK !=
TALER_TESTING_get_trait_payto_uris (ref,
@@ -163,7 +163,7 @@ delete_account_run (void *cls,
TALER_TESTING_FAIL (is);
return;
}
- if (0 != strcmp (*payto_uri,
+ if (0 != strcmp (payto_uri,
das->payto_uri))
continue; /* different account */
if (GNUNET_OK !=
@@ -182,11 +182,12 @@ delete_account_run (void *cls,
break;
}
GNUNET_assert (NULL != h_wire);
- das->adh = TALER_MERCHANT_account_delete (is->ctx,
- *merchant_url,
- h_wire,
- &delete_account_cb,
- das);
+ das->adh = TALER_MERCHANT_account_delete (
+ TALER_TESTING_interpreter_get_context (is),
+ merchant_url,
+ h_wire,
+ &delete_account_cb,
+ das);
GNUNET_assert (NULL != das->adh);
}