From e0b94f9a698a007e559fe99bbe432b74532754ef Mon Sep 17 00:00:00 2001 From: neithanmo Date: Mon, 9 Dec 2024 20:53:04 +0100 Subject: [PATCH] Remove concurrent tag in test --- tests_zemu/tests/addr.test.ts | 8 ++++---- tests_zemu/tests/c_sign.test.ts | 2 +- tests_zemu/tests/eth_addr.test.ts | 6 +++--- tests_zemu/tests/eth_legacy.test.ts | 2 +- tests_zemu/tests/standard.test.ts | 4 ++-- tests_zemu/tests/wallet_id.test.ts | 4 ++-- tests_zemu/tests/xpub.test.ts | 10 +++++++--- 7 files changed, 20 insertions(+), 16 deletions(-) diff --git a/tests_zemu/tests/addr.test.ts b/tests_zemu/tests/addr.test.ts index be25338c6..854554b83 100644 --- a/tests_zemu/tests/addr.test.ts +++ b/tests_zemu/tests/addr.test.ts @@ -28,7 +28,7 @@ const EXPECTED_PUBLIC_KEY = '02c6f477ff8e7136de982f898f6bfe93136bbe8dada6c17d0cd jest.setTimeout(200000) describe.each(models)('StandardPubKey [%s] - pubkey', function (m) { - test.concurrent('getPubkeyAddr', async function () { + test('getPubkeyAddr', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m)) @@ -49,7 +49,7 @@ describe.each(models)('StandardPubKey [%s] - pubkey', function (m) { } }) - test.concurrent('ShowAddr', async function () { + test('ShowAddr', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m)) @@ -72,7 +72,7 @@ describe.each(models)('StandardPubKey [%s] - pubkey', function (m) { } }) - test.concurrent('hrpChainIDAddr', async function () { + test('hrpChainIDAddr', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m)) @@ -92,7 +92,7 @@ describe.each(models)('StandardPubKey [%s] - pubkey', function (m) { } }) - test.concurrent('show custom hrp & chainID addr', async function () { + test('show custom hrp & chainID addr', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m)) diff --git a/tests_zemu/tests/c_sign.test.ts b/tests_zemu/tests/c_sign.test.ts index 28096c169..5f6993665 100644 --- a/tests_zemu/tests/c_sign.test.ts +++ b/tests_zemu/tests/c_sign.test.ts @@ -38,7 +38,7 @@ const SIGN_TEST_DATA = [ jest.setTimeout(200000) describe.each(models)('C_Sign[%s]; sign', function (m) { - test.concurrent.each(SIGN_TEST_DATA)('sign c-chain $name transaction', async function ({ name, op }) { + test.each(SIGN_TEST_DATA)('sign c-chain $name transaction', async function ({ name, op }) { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m)) diff --git a/tests_zemu/tests/eth_addr.test.ts b/tests_zemu/tests/eth_addr.test.ts index 7e3aad4ef..e6247d7f6 100644 --- a/tests_zemu/tests/eth_addr.test.ts +++ b/tests_zemu/tests/eth_addr.test.ts @@ -20,7 +20,7 @@ import { ETH_DERIVATION, defaultOptions, models } from './common' import Eth from '@ledgerhq/hw-app-eth' describe.each(models)('EthereumKeys [%s] - pubkey', function (m) { - test.concurrent('get pubkey and addr %s', async function () { + test('get pubkey and addr %s', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m, true)) @@ -40,7 +40,7 @@ describe.each(models)('EthereumKeys [%s] - pubkey', function (m) { } }) - test.concurrent('show addr %s', async function () { + test('show addr %s', async function () { const sim = new Zemu(m.path) try { @@ -61,7 +61,7 @@ describe.each(models)('EthereumKeys [%s] - pubkey', function (m) { } }) - test.concurrent('get xpub and addr %s', async function () { + test('get xpub and addr %s', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m, true)) diff --git a/tests_zemu/tests/eth_legacy.test.ts b/tests_zemu/tests/eth_legacy.test.ts index 8233af708..47362316b 100644 --- a/tests_zemu/tests/eth_legacy.test.ts +++ b/tests_zemu/tests/eth_legacy.test.ts @@ -138,7 +138,7 @@ function check_legacy_signature(hexTx: string, signature: any, chainId: number | } describe.each(models)('EthereumLegacy [%s]; sign', function (m) { - test.concurrent.each(SIGN_TEST_DATA)('sign legacy: $name', async function (data) { + test.each(SIGN_TEST_DATA)('sign legacy: $name', async function (data) { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m)) diff --git a/tests_zemu/tests/standard.test.ts b/tests_zemu/tests/standard.test.ts index 22861caa2..a30dae520 100644 --- a/tests_zemu/tests/standard.test.ts +++ b/tests_zemu/tests/standard.test.ts @@ -30,7 +30,7 @@ describe.each(models)('Standard', function (m) { } }) - test.concurrent('MainMenu', async function () { + test('MainMenu', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m)) @@ -41,7 +41,7 @@ describe.each(models)('Standard', function (m) { } }) - test.concurrent('AppVersion', async function () { + test('AppVersion', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m)) diff --git a/tests_zemu/tests/wallet_id.test.ts b/tests_zemu/tests/wallet_id.test.ts index b7d3792f2..06219fabb 100644 --- a/tests_zemu/tests/wallet_id.test.ts +++ b/tests_zemu/tests/wallet_id.test.ts @@ -21,7 +21,7 @@ import AvalancheApp from '@zondax/ledger-avalanche-app' jest.setTimeout(200000) describe.each(models)('WalletID [%s] - wallet id', function (m) { - test.concurrent('getWalletId', async function () { + test('getWalletId', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m)) @@ -38,7 +38,7 @@ describe.each(models)('WalletID [%s] - wallet id', function (m) { } }) - test.concurrent('showWalletId', async function () { + test('showWalletId', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m, true)) diff --git a/tests_zemu/tests/xpub.test.ts b/tests_zemu/tests/xpub.test.ts index 0296a9e62..e502fcbca 100644 --- a/tests_zemu/tests/xpub.test.ts +++ b/tests_zemu/tests/xpub.test.ts @@ -21,11 +21,15 @@ import AvalancheApp from '@zondax/ledger-avalanche-app' jest.setTimeout(200000) const defaultOptions = (model: any) => { - return { ...commonOpts(model, true), approveKeyword: isTouchDevice(model.name) ? 'Confirm' : '', approveAction: ButtonKind.DynamicTapButton } + return { + ...commonOpts(model, true), + approveKeyword: isTouchDevice(model.name) ? 'Confirm' : '', + approveAction: ButtonKind.DynamicTapButton, + } } describe.each(models)('ExtPubkey[%s]', function (m) { - test.concurrent('getPubkey %s', async function () { + test('getPubkey %s', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m)) @@ -43,7 +47,7 @@ describe.each(models)('ExtPubkey[%s]', function (m) { } }) - test.concurrent('showExtAddr', async function () { + test('showExtAddr', async function () { const sim = new Zemu(m.path) try { await sim.start(defaultOptions(m))