diff options
author | Sebastian <sebasjm@gmail.com> | 2023-04-24 13:13:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-04-24 13:13:20 -0300 |
commit | b3cdd3409e172843d43cace16592230478096338 (patch) | |
tree | d9b6a507f311ef54a0e76282f2fc03960d2e7146 /packages/taler-harness/src/integrationtests/test-wallet-dbless.ts | |
parent | 4889ae9c9b0d8ae31cc04478c18f2191bf668e26 (diff) | |
download | wallet-core-b3cdd3409e172843d43cace16592230478096338.tar.xz |
improved log, added allow-http flag and prevent thrott
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-wallet-dbless.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-wallet-dbless.ts | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-wallet-dbless.ts b/packages/taler-harness/src/integrationtests/test-wallet-dbless.ts index 37be9dcf8..c384a6e74 100644 --- a/packages/taler-harness/src/integrationtests/test-wallet-dbless.ts +++ b/packages/taler-harness/src/integrationtests/test-wallet-dbless.ts @@ -33,6 +33,7 @@ import { refreshCoin, SynchronousCryptoWorkerFactoryPlain, topupReserveWithDemobank, + Wallet, withdrawCoin, } from "@gnu-taler/taler-wallet-core"; import { GlobalTestState } from "../harness/harness.js"; @@ -46,7 +47,10 @@ export async function runWalletDblessTest(t: GlobalTestState) { const { bank, exchange } = await createSimpleTestkudosEnvironment(t); - const http = createPlatformHttpLib(); + const http = createPlatformHttpLib({ + allowHttp: true, + enableThrottling: false, + }); const cryptiDisp = new CryptoDispatcher( new SynchronousCryptoWorkerFactoryPlain(), ); @@ -84,7 +88,9 @@ export async function runWalletDblessTest(t: GlobalTestState) { await checkReserve(http, exchange.baseUrl, reserveKeyPair.pub); - const d1 = findDenomOrThrow(exchangeInfo, "TESTKUDOS:8"); + const d1 = findDenomOrThrow(exchangeInfo, "TESTKUDOS:8", { + denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate, + }); const coin = await withdrawCoin({ http, @@ -125,8 +131,12 @@ export async function runWalletDblessTest(t: GlobalTestState) { }); const refreshDenoms = [ - findDenomOrThrow(exchangeInfo, "TESTKUDOS:1"), - findDenomOrThrow(exchangeInfo, "TESTKUDOS:1"), + findDenomOrThrow(exchangeInfo, "TESTKUDOS:1", { + denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate, + }), + findDenomOrThrow(exchangeInfo, "TESTKUDOS:1", { + denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate, + }), ]; await refreshCoin({ |