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