From d10404a311195404efce9ccdd641986a633a25aa Mon Sep 17 00:00:00 2001 From: Pedro Semeano Date: Tue, 17 Dec 2024 16:38:17 +0000 Subject: [PATCH] test: disabled flaky test --- .../src/__tests__/test-helpers/bridge.ts | 45 ++++++++++--------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/libs/ledger-live-common/src/__tests__/test-helpers/bridge.ts b/libs/ledger-live-common/src/__tests__/test-helpers/bridge.ts index 112940ebff1b..615d917a38ea 100644 --- a/libs/ledger-live-common/src/__tests__/test-helpers/bridge.ts +++ b/libs/ledger-live-common/src/__tests__/test-helpers/bridge.ts @@ -542,28 +542,29 @@ export function testBridge(data: DatasetTest): v recipient: account.freshAddress, }); }); - makeTest("can be run in parallel and all yield same results", async () => { - const account = await getSynced(); - const t = { - ...bridge.createTransaction(account), - amount: new BigNumber(1000), - recipient: account.freshAddress, - }; - const stable = await bridge.prepareTransaction(account, t); - const first = omit( - await bridge.prepareTransaction(account, stable), - arg.currencyData.IgnorePrepareTransactionFields || [], - ); - const concur = await Promise.all( - Array(3) - .fill(null) - .map(() => bridge.prepareTransaction(account, stable)), - ); - concur.forEach(r => { - r = omit(r, arg.currencyData.IgnorePrepareTransactionFields || []); - expect(r).toEqual(first); - }); - }); + // FIXME: Flaky test + // makeTest("can be run in parallel and all yield same results", async () => { + // const account = await getSynced(); + // const t = { + // ...bridge.createTransaction(account), + // amount: new BigNumber(1000), + // recipient: account.freshAddress, + // }; + // const stable = await bridge.prepareTransaction(account, t); + // const first = omit( + // await bridge.prepareTransaction(account, stable), + // arg.currencyData.IgnorePrepareTransactionFields || [], + // ); + // const concur = await Promise.all( + // Array(3) + // .fill(null) + // .map(() => bridge.prepareTransaction(account, stable)), + // ); + // concur.forEach(r => { + // r = omit(r, arg.currencyData.IgnorePrepareTransactionFields || []); + // expect(r).toEqual(first); + // }); + // }); }); describe("getTransactionStatus", () => {