diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-08 22:27:26 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-08 22:27:26 +0530 |
commit | 5fb9dae13cf154dfe73aa3c62bc94ccb45f0c8d1 (patch) | |
tree | c30f253056187410b81901a91ff1f438b3658b2c /packages/taler-integrationtests/src/helpers.ts | |
parent | e8c0a43dd37f34ae8227d02c87b1ed7ab368d03c (diff) | |
download | wallet-core-5fb9dae13cf154dfe73aa3c62bc94ccb45f0c8d1.tar.xz |
test for manual withdrawal
Diffstat (limited to 'packages/taler-integrationtests/src/helpers.ts')
-rw-r--r-- | packages/taler-integrationtests/src/helpers.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/taler-integrationtests/src/helpers.ts b/packages/taler-integrationtests/src/helpers.ts index 9afb66428..41cd39d77 100644 --- a/packages/taler-integrationtests/src/helpers.ts +++ b/packages/taler-integrationtests/src/helpers.ts @@ -32,6 +32,7 @@ import { setupDb, BankService, defaultCoinConfig, + ExchangeBankAccount, } from "./harness"; import { AmountString } from "taler-wallet-core/lib/types/talerTypes"; @@ -39,6 +40,7 @@ export interface SimpleTestEnvironment { commonDb: DbInfo; bank: BankService; exchange: ExchangeService; + exchangeBankAccount: ExchangeBankAccount; merchant: MerchantService; wallet: WalletCli; } @@ -73,13 +75,15 @@ export async function createSimpleTestkudosEnvironment( database: db.connStr, }); - bank.setSuggestedExchange(exchange, "payto://x-taler-bank/MyExchange"); + const exchangeBankAccount = await bank.createExchangeAccount("MyExchange", "x"); + exchange.addBankAccount("1", exchangeBankAccount); + + bank.setSuggestedExchange(exchange, exchangeBankAccount.accountPaytoUri); await bank.start(); await bank.pingUntilAvailable(); - await exchange.setupTestBankAccount(bank, "1", "MyExchange", "x"); exchange.addOfferedCoins(defaultCoinConfig); await exchange.start(); @@ -112,6 +116,7 @@ export async function createSimpleTestkudosEnvironment( merchant, wallet, bank, + exchangeBankAccount, }; } |