summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-03 17:14:00 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-03 17:14:00 +0100
commita9b3c564bdd80ad6d3db0d0c493144956c64368d (patch)
tree0d6b2e480eb87802f26d2c323d07d8a89b8f7268 /src/testing
parent97fb6b0091ca089b997febf691be2038223a8d21 (diff)
downloadexchange-a9b3c564bdd80ad6d3db0d0c493144956c64368d.tar.gz
exchange-a9b3c564bdd80ad6d3db0d0c493144956c64368d.tar.bz2
exchange-a9b3c564bdd80ad6d3db0d0c493144956c64368d.zip
rename BANK_excecute_wire_transfer to BANK_transfer, improve error handling when curl_easy_init() fails
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_bank_transfer.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/testing/testing_api_cmd_bank_transfer.c b/src/testing/testing_api_cmd_bank_transfer.c
index 6aa926df..f8dfc0b8 100644
--- a/src/testing/testing_api_cmd_bank_transfer.c
+++ b/src/testing/testing_api_cmd_bank_transfer.c
@@ -76,7 +76,7 @@ struct TransferState
/**
* Handle to the pending request at the fakebank.
*/
- struct TALER_BANK_WireExecuteHandle *weh;
+ struct TALER_BANK_TransferHandle *weh;
/**
* Interpreter state.
@@ -233,15 +233,15 @@ transfer_run (void *cls,
TALER_amount2s (&fts->amount),
fts->account_debit_url,
fts->payto_credit_account);
- TALER_BANK_prepare_wire_transfer (fts->payto_credit_account,
- &fts->amount,
- fts->exchange_base_url,
- &fts->wtid,
- &buf,
- &buf_size);
+ TALER_BANK_prepare_transfer (fts->payto_credit_account,
+ &fts->amount,
+ fts->exchange_base_url,
+ &fts->wtid,
+ &buf,
+ &buf_size);
fts->is = is;
fts->weh
- = TALER_BANK_execute_wire_transfer
+ = TALER_BANK_transfer
(TALER_TESTING_interpreter_get_context (is),
&fts->auth,
buf,
@@ -276,7 +276,7 @@ transfer_cleanup (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Command %s did not complete\n",
cmd->label);
- TALER_BANK_execute_wire_transfer_cancel (fts->weh);
+ TALER_BANK_transfer_cancel (fts->weh);
fts->weh = NULL;
}
if (NULL != fts->retry_task)