This commit is contained in:
Florian Dold 2022-09-07 12:55:09 +02:00
parent 319d51dc42
commit a37d201aa2
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -32,7 +32,7 @@ import {
BankAccessApi,
} from "@gnu-taler/taler-wallet-core";
import {
ExchangesListRespose,
ExchangesListResponse,
URL,
TalerErrorCode,
} from "@gnu-taler/taler-util";
@ -45,7 +45,9 @@ import { defaultCoinConfig } from "../harness/denomStructures.js";
/**
* Test if the wallet handles outdated exchange versions correct.y
*/
export async function runExchangeManagementTest(t: GlobalTestState): Promise<void> {
export async function runExchangeManagementTest(
t: GlobalTestState,
): Promise<void> {
// Set up test environment
const db = await setupDb(t);
@ -121,7 +123,7 @@ export async function runExchangeManagementTest(t: GlobalTestState): Promise<voi
const wallet = new WalletCli(t);
let exchangesList: ExchangesListRespose;
let exchangesList: ExchangesListResponse;
exchangesList = await wallet.client.call(
WalletApiOperation.ListExchanges,
@ -197,7 +199,7 @@ export async function runExchangeManagementTest(t: GlobalTestState): Promise<voi
// in a format the wallet can understand.
t.assertTrue(
err1.errorDetail.innerError.code ===
TalerErrorCode.WALLET_RECEIVED_MALFORMED_RESPONSE,
TalerErrorCode.WALLET_RECEIVED_MALFORMED_RESPONSE,
);
exchangesList = await wallet.client.call(
@ -241,7 +243,7 @@ export async function runExchangeManagementTest(t: GlobalTestState): Promise<voi
t.assertTrue(
err2.errorDetail.innerError.code ===
TalerErrorCode.WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE,
TalerErrorCode.WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE,
);
exchangesList = await wallet.client.call(