diff options
| author | Christian Grothoff <christian@grothoff.org> | 2023-07-03 17:51:13 +0200 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2023-07-03 17:51:13 +0200 | 
| commit | 290268e9af65467ba8ffc82a196e2666c7796475 (patch) | |
| tree | c58fd374df9c38339fbb683aa2eb25936fdddb0d /src/testing | |
| parent | 75ea35722be6b39eadbe1918a0cc88a9ecd4b2d5 (diff) | |
more work on API atomization
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing_api_cmd_wire.c | 26 | 
1 files changed, 7 insertions, 19 deletions
| diff --git a/src/testing/testing_api_cmd_wire.c b/src/testing/testing_api_cmd_wire.c index a1324231..41ff7a97 100644 --- a/src/testing/testing_api_cmd_wire.c +++ b/src/testing/testing_api_cmd_wire.c @@ -1,6 +1,6 @@  /*    This file is part of TALER -  Copyright (C) 2018 Taler Systems SA +  Copyright (C) 2018, 2023 Taler Systems SA    TALER is free software; you can redistribute it and/or modify it    under the terms of the GNU General Public License as published by @@ -191,16 +191,15 @@ wire_run (void *cls,            struct TALER_TESTING_Interpreter *is)  {    struct WireState *ws = cls; -  struct TALER_EXCHANGE_Handle *exchange -    = TALER_TESTING_get_exchange (is);    ws->cmd = cmd; -  if (NULL == exchange) -    return;    ws->is = is; -  ws->wh = TALER_EXCHANGE_wire (exchange, -                                &wire_cb, -                                ws); +  ws->wh = TALER_EXCHANGE_wire ( +    TALER_TESTING_interpreter_get_context (is), +    TALER_TESTING_get_exchange_url (is), +    TALER_TESTING_get_keys (is), +    &wire_cb, +    ws);  } @@ -228,17 +227,6 @@ wire_cleanup (void *cls,  } -/** - * Create a "wire" command. - * - * @param label the command label. - * @param expected_method which wire-transfer method is expected - *        to be offered by the exchange. - * @param expected_fee the fee the exchange should charge. - * @param expected_response_code the HTTP response the exchange - *        should return. - * @return the command. - */  struct TALER_TESTING_Command  TALER_TESTING_cmd_wire (const char *label,                          const char *expected_method, | 
