diff options
author | Florian Dold <florian@dold.me> | 2021-02-08 13:02:12 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-08 13:02:55 +0100 |
commit | 883637d3f287e5026de5bcafb559ff3e6ba1f3bb (patch) | |
tree | cac64b97186a18c071c3e51e2ae74e74802d8235 /packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts | |
parent | 48fa2ccea16e1d0e11d5ac93049bc33df8d47119 (diff) | |
download | wallet-core-883637d3f287e5026de5bcafb559ff3e6ba1f3bb.tar.xz |
allow fault injection callbacks to run async code
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts b/packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts index 6fc8bf3c1..1b7deefc5 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts @@ -155,7 +155,7 @@ export async function runExchangeManagementTest(t: GlobalTestState) { t.assertTrue(exchangesList.exchanges.length === 0); faultyExchange.faultProxy.addFault({ - modifyResponse(ctx: FaultInjectionResponseContext) { + async modifyResponse(ctx: FaultInjectionResponseContext) { const url = new URL(ctx.request.requestUrl); if (url.pathname === "/keys") { const body = { @@ -193,7 +193,7 @@ export async function runExchangeManagementTest(t: GlobalTestState) { faultyExchange.faultProxy.clearAllFaults(); faultyExchange.faultProxy.addFault({ - modifyResponse(ctx: FaultInjectionResponseContext) { + async modifyResponse(ctx: FaultInjectionResponseContext) { const url = new URL(ctx.request.requestUrl); if (url.pathname === "/keys") { const keys = ctx.responseBody?.toString("utf-8"); |