From 99ace8b7d24416f2b184d66006c89b61935e132e Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 5 Oct 2022 16:01:59 +0200 Subject: integration tests: make test-wallet-cryptoworker pass --- packages/taler-wallet-cli/src/index.ts | 10 +++++++++- .../src/integrationtests/test-wallet-cryptoworker.ts | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-cli') diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 47a520c83..c1afbe15c 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -182,7 +182,7 @@ export const walletCli = clk }, }) .maybeOption("cryptoWorker", ["--crypto-worker"], clk.STRING, { - help: "Override crypto worker implementation type." + help: "Override crypto worker implementation type.", }) .maybeOption("log", ["-L", "--log"], clk.STRING, { help: "configure log level (NONE, ..., TRACE)", @@ -729,6 +729,14 @@ const advancedCli = walletCli.subcommand("advancedArgs", "advanced", { help: "Subcommands for advanced operations (only use if you know what you're doing!).", }); +advancedCli + .subcommand("init", "init", { + help: "Initialize the wallet (with DB) and exit." + }) + .action(async (args) => { + await withWallet(args, async () => {}); + }); + advancedCli .subcommand("bench1", "bench1", { help: "Run the 'bench1' benchmark", diff --git a/packages/taler-wallet-cli/src/integrationtests/test-wallet-cryptoworker.ts b/packages/taler-wallet-cli/src/integrationtests/test-wallet-cryptoworker.ts index fefdab27a..cc0e23a3c 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-wallet-cryptoworker.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-wallet-cryptoworker.ts @@ -43,13 +43,13 @@ export async function runWalletCryptoWorkerTest(t: GlobalTestState) { cryptoWorkerType: "sync", }); - await wallet1.client.call(WalletApiOperation.CryptoTest, {}); + await wallet1.client.call(WalletApiOperation.TestCrypto, {}); const wallet2 = new WalletCli(t, "w2", { cryptoWorkerType: "node-worker-thread", }); - await wallet2.client.call(WalletApiOperation.CryptoTest, {}); + await wallet2.client.call(WalletApiOperation.TestCrypto, {}); } runWalletCryptoWorkerTest.suites = ["wallet"]; -- cgit v1.2.3