-test fixes
This commit is contained in:
parent
7f0edb6a78
commit
99b844b465
@ -103,13 +103,10 @@ export async function runRefundGoneTest(t: GlobalTestState) {
|
|||||||
|
|
||||||
console.log(ref);
|
console.log(ref);
|
||||||
|
|
||||||
let rr = await wallet.client.call(WalletApiOperation.AcceptPurchaseRefund, {
|
await wallet.client.call(WalletApiOperation.StartRefundQuery, {
|
||||||
transactionId: ref.talerRefundUri,
|
transactionId: r1.transactionId,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("refund response:", rr);
|
|
||||||
t.assertAmountEquals(rr.amountRefundGone, "TESTKUDOS:5");
|
|
||||||
|
|
||||||
await wallet.runUntilDone();
|
await wallet.runUntilDone();
|
||||||
|
|
||||||
let r = await wallet.client.call(WalletApiOperation.GetBalances, {});
|
let r = await wallet.client.call(WalletApiOperation.GetBalances, {});
|
||||||
|
@ -94,9 +94,10 @@ export async function runRefundIncrementalTest(t: GlobalTestState) {
|
|||||||
console.log("first refund increase response", ref);
|
console.log("first refund increase response", ref);
|
||||||
|
|
||||||
{
|
{
|
||||||
let wr = await wallet.client.call(WalletApiOperation.AcceptPurchaseRefund, {
|
let wr = await wallet.client.call(WalletApiOperation.StartRefundQuery, {
|
||||||
transactionId: ref.talerRefundUri,
|
transactionId: r1.transactionId,
|
||||||
});
|
});
|
||||||
|
await wallet.runUntilDone();
|
||||||
console.log(wr);
|
console.log(wr);
|
||||||
const txs = await wallet.client.call(
|
const txs = await wallet.client.call(
|
||||||
WalletApiOperation.GetTransactions,
|
WalletApiOperation.GetTransactions,
|
||||||
@ -135,9 +136,10 @@ export async function runRefundIncrementalTest(t: GlobalTestState) {
|
|||||||
console.log("third refund increase response", ref);
|
console.log("third refund increase response", ref);
|
||||||
|
|
||||||
{
|
{
|
||||||
let wr = await wallet.client.call(WalletApiOperation.AcceptPurchaseRefund, {
|
let wr = await wallet.client.call(WalletApiOperation.StartRefundQuery, {
|
||||||
transactionId: ref.talerRefundUri,
|
transactionId: r1.transactionId,
|
||||||
});
|
});
|
||||||
|
await wallet.runUntilDone();
|
||||||
console.log(wr);
|
console.log(wr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,7 +171,6 @@ export async function runRefundIncrementalTest(t: GlobalTestState) {
|
|||||||
"payment",
|
"payment",
|
||||||
"refund",
|
"refund",
|
||||||
"refund",
|
"refund",
|
||||||
"refund",
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
for (const tx of txs.transactions) {
|
for (const tx of txs.transactions) {
|
||||||
|
@ -652,7 +652,7 @@ function buildTransactionForRefund(
|
|||||||
return {
|
return {
|
||||||
type: TransactionType.Refund,
|
type: TransactionType.Refund,
|
||||||
amountEffective: refundRecord.amountEffective,
|
amountEffective: refundRecord.amountEffective,
|
||||||
amountRaw: refundRecord.amountEffective,
|
amountRaw: refundRecord.amountRaw,
|
||||||
refundedTransactionId: constructTransactionIdentifier({
|
refundedTransactionId: constructTransactionIdentifier({
|
||||||
tag: TransactionType.Payment,
|
tag: TransactionType.Payment,
|
||||||
proposalId: refundRecord.proposalId
|
proposalId: refundRecord.proposalId
|
||||||
|
Loading…
Reference in New Issue
Block a user