diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-18 17:05:26 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-18 17:05:26 +0100 |
commit | e634c877e34952d951438eaafd40e43c291a64fa (patch) | |
tree | 1aba2c102e4df3bf9e236e2d51540394bfe6c64b | |
parent | ce36e23a88441f25c2944e108a4f0d58c85b11d0 (diff) |
/wire: #5284
-rw-r--r-- | src/exchange-lib/test_exchange_api_new.c | 2 | ||||
-rw-r--r-- | src/exchange-lib/testing_api_cmd_wire.c | 9 | ||||
-rw-r--r-- | src/include/taler_testing_lib.h | 2 |
3 files changed, 1 insertions, 12 deletions
diff --git a/src/exchange-lib/test_exchange_api_new.c b/src/exchange-lib/test_exchange_api_new.c index 828285b07..199aaadd4 100644 --- a/src/exchange-lib/test_exchange_api_new.c +++ b/src/exchange-lib/test_exchange_api_new.c @@ -155,7 +155,6 @@ run (void *cls, * by the exchange. */ TALER_TESTING_cmd_wire ("wire-taler-bank-1", - is->exchange, "x-taler-bank", NULL, MHD_HTTP_OK), @@ -164,7 +163,6 @@ run (void *cls, * Check if 'ebics' wire method is offered by the exchange. */ TALER_TESTING_cmd_wire ("wire-sepa-1", - is->exchange, "ebics", NULL, MHD_HTTP_OK), diff --git a/src/exchange-lib/testing_api_cmd_wire.c b/src/exchange-lib/testing_api_cmd_wire.c index 52fe2ebb8..e6fe9f97c 100644 --- a/src/exchange-lib/testing_api_cmd_wire.c +++ b/src/exchange-lib/testing_api_cmd_wire.c @@ -67,11 +67,6 @@ struct WireState * Interpreter state. */ struct TALER_TESTING_Interpreter *is; - - /** - * Connection to the exchange. - */ - struct TALER_EXCHANGE_Handle *exchange; }; @@ -171,7 +166,7 @@ wire_run (void *cls, { struct WireState *ws = cls; ws->is = is; - ws->wh = TALER_EXCHANGE_wire (ws->exchange, + ws->wh = TALER_EXCHANGE_wire (is->exchange, &wire_cb, ws); } @@ -217,7 +212,6 @@ wire_cleanup (void *cls, */ struct TALER_TESTING_Command TALER_TESTING_cmd_wire (const char *label, - struct TALER_EXCHANGE_Handle *exchange, const char *expected_method, const char *expected_fee, unsigned int expected_response_code) @@ -226,7 +220,6 @@ TALER_TESTING_cmd_wire (const char *label, struct WireState *ws; ws = GNUNET_new (struct WireState); - ws->exchange = exchange; ws->expected_method = expected_method; ws->expected_fee = expected_fee; ws->expected_response_code = expected_response_code; diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index ef3168ac1..ae8ef3a4a 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -977,7 +977,6 @@ TALER_TESTING_cmd_withdraw_with_retry (struct TALER_TESTING_Command cmd); * Create a "wire" command. * * @param label the command label. - * @param exchange the exchange to connect to. * @param expected_method which wire-transfer method is expected * to be offered by the exchange. * @param expected_fee the fee the exchange should charge. @@ -988,7 +987,6 @@ TALER_TESTING_cmd_withdraw_with_retry (struct TALER_TESTING_Command cmd); */ struct TALER_TESTING_Command TALER_TESTING_cmd_wire (const char *label, - struct TALER_EXCHANGE_Handle *exchange, const char *expected_method, const char *expected_fee, unsigned int expected_response_code); |