Adapt test to bank returning descending /history elements.

This commit is contained in:
Marcello Stanisci 2018-12-13 19:38:15 +01:00
parent ef58152c2b
commit b3c31f8f59
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -74,7 +74,7 @@ run (void *cls)
.details.history.account_number = 2, .details.history.account_number = 2,
.details.history.direction = TALER_BANK_DIRECTION_CREDIT, .details.history.direction = TALER_BANK_DIRECTION_CREDIT,
.details.history.start_row_ref = NULL, .details.history.start_row_ref = NULL,
.details.history.num_results = 5 }, .details.history.num_results = -5 },
/* Ask Exchange's outgoing history, 5 records into the future */ /* Ask Exchange's outgoing history, 5 records into the future */
{ .oc = TBI_OC_HISTORY, { .oc = TBI_OC_HISTORY,
.label = "history-2d", .label = "history-2d",
@ -103,7 +103,7 @@ run (void *cls)
.details.history.account_number = 2, .details.history.account_number = 2,
.details.history.direction = TALER_BANK_DIRECTION_CREDIT, .details.history.direction = TALER_BANK_DIRECTION_CREDIT,
.details.history.start_row_ref = NULL, .details.history.start_row_ref = NULL,
.details.history.num_results = 5 }, .details.history.num_results = -5 },
{ .oc = TBI_OC_HISTORY, { .oc = TBI_OC_HISTORY,
.label = "history-r2", .label = "history-r2",
.details.history.account_number = 2, .details.history.account_number = 2,
@ -115,7 +115,7 @@ run (void *cls)
.details.history.account_number = 2, .details.history.account_number = 2,
.details.history.direction = TALER_BANK_DIRECTION_BOTH | TALER_BANK_DIRECTION_CANCEL, .details.history.direction = TALER_BANK_DIRECTION_BOTH | TALER_BANK_DIRECTION_CANCEL,
.details.history.start_row_ref = NULL, .details.history.start_row_ref = NULL,
.details.history.num_results = 5 }, .details.history.num_results = -5 },
{ .oc = TBI_OC_END } { .oc = TBI_OC_END }
}; };