Skip to content

Commit

Permalink
test: disabled flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
semeano committed Dec 17, 2024
1 parent 1343768 commit d10404a
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions libs/ledger-live-common/src/__tests__/test-helpers/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,28 +542,29 @@ export function testBridge<T extends TransactionCommon>(data: DatasetTest<T>): 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", () => {
Expand Down

0 comments on commit d10404a

Please sign in to comment.