Skip to content

Commit

Permalink
Remove concurrent tag in test
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Dec 9, 2024
1 parent 254882e commit e0b94f9
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 16 deletions.
8 changes: 4 additions & 4 deletions tests_zemu/tests/addr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand All @@ -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))
Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion tests_zemu/tests/c_sign.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 3 additions & 3 deletions tests_zemu/tests/eth_addr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 {
Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion tests_zemu/tests/eth_legacy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions tests_zemu/tests/standard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions tests_zemu/tests/wallet_id.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down
10 changes: 7 additions & 3 deletions tests_zemu/tests/xpub.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down

0 comments on commit e0b94f9

Please sign in to comment.