This commit is contained in:
Sebastian 2022-05-18 14:38:57 -03:00
parent 115e5bf353
commit d3a857743d
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -39,13 +39,13 @@ import {
import { import {
FaultInjectedExchangeService, FaultInjectedExchangeService,
FaultInjectionResponseContext, FaultInjectionResponseContext,
} from "../harness/faultInjection"; } from "../harness/faultInjection.js";
import { defaultCoinConfig } from "../harness/denomStructures"; import { defaultCoinConfig } from "../harness/denomStructures.js";
/** /**
* Test if the wallet handles outdated exchange versions correct.y * Test if the wallet handles outdated exchange versions correct.y
*/ */
export async function runExchangeManagementTest(t: GlobalTestState) { export async function runExchangeManagementTest(t: GlobalTestState): Promise<void> {
// Set up test environment // Set up test environment
const db = await setupDb(t); const db = await setupDb(t);
@ -197,7 +197,7 @@ export async function runExchangeManagementTest(t: GlobalTestState) {
// in a format the wallet can understand. // in a format the wallet can understand.
t.assertTrue( t.assertTrue(
err1.errorDetail.innerError.code === err1.errorDetail.innerError.code ===
TalerErrorCode.WALLET_RECEIVED_MALFORMED_RESPONSE, TalerErrorCode.WALLET_RECEIVED_MALFORMED_RESPONSE,
); );
exchangesList = await wallet.client.call( exchangesList = await wallet.client.call(
@ -241,7 +241,7 @@ export async function runExchangeManagementTest(t: GlobalTestState) {
t.assertTrue( t.assertTrue(
err2.errorDetail.innerError.code === err2.errorDetail.innerError.code ===
TalerErrorCode.WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE, TalerErrorCode.WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE,
); );
exchangesList = await wallet.client.call( exchangesList = await wallet.client.call(