fix exchange tests FTBFS

This commit is contained in:
Christian Grothoff 2020-01-12 18:20:47 +01:00
parent 44460a3147
commit c085013ea7
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -130,7 +130,7 @@ struct Command
/**
* Subject of the transfer, set by the command.
*/
char *subject;
struct TALER_WireTransferIdentifierRawP wtid;
} expect_transfer;
@ -387,8 +387,6 @@ shutdown_action (void *cls)
case OPCODE_WAIT:
break;
case OPCODE_EXPECT_TRANSFER:
GNUNET_free_non_null (cmd->details.expect_transfer.subject);
cmd->details.expect_transfer.subject = NULL;
break;
case OPCODE_EXPECT_TRANSFERS_EMPTY:
break;
@ -562,12 +560,14 @@ interpreter (void *cls)
return;
}
if (GNUNET_OK !=
TALER_FAKEBANK_check (fb,
&want_amount,
cmd->details.expect_transfer.debit_account,
cmd->details.expect_transfer.credit_account,
cmd->details.expect_transfer.exchange_base_url,
&cmd->details.expect_transfer.subject))
TALER_FAKEBANK_check_debit (fb,
&want_amount,
cmd->details.expect_transfer.debit_account,
cmd->details.expect_transfer.
credit_account,
cmd->details.expect_transfer.
exchange_base_url,
&cmd->details.expect_transfer.wtid))
{
fail (cmd);
return;