Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Bot: ethereum specs to allow more testTimeout (LedgerHQ#1733)
Browse files Browse the repository at this point in the history
to try to fix the timeout situation of not finding the operation after a given amount of sync.
  • Loading branch information
gre authored and aimxhaisse committed Mar 5, 2022
1 parent 514d415 commit 6d34e73
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/families/ethereum/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import { DeviceModelId } from "@ledgerhq/devices";
import { TokenCurrency } from "@ledgerhq/cryptoassets";
import { CompoundAccountSummary } from "../../compound/types";

const testTimeout = 5 * 60 * 1000;

const ethereumBasicMutations = ({ maxAccount }) => [
{
name: "move 50%",
Expand Down Expand Up @@ -119,7 +121,7 @@ const ethereum: AppSpec<Transaction> = {
model: DeviceModelId.nanoS,
appName: "Ethereum",
},
testTimeout: 4 * 60 * 1000,
testTimeout,
transactionCheck: ({ maxSpendable }) => {
invariant(
maxSpendable.gt(
Expand Down Expand Up @@ -357,7 +359,7 @@ const ethereumClassic: AppSpec<Transaction> = {
appName: "Ethereum Classic",
},
dependency: "Ethereum",
testTimeout: 2 * 60 * 1000,
testTimeout,
transactionCheck: ({ maxSpendable }) => {
invariant(
maxSpendable.gt(
Expand All @@ -380,7 +382,7 @@ const ethereumRopsten: AppSpec<Transaction> = {
model: DeviceModelId.nanoS,
appName: "Ethereum",
},
testTimeout: 2 * 60 * 1000,
testTimeout,
transactionCheck: ({ maxSpendable }) => {
invariant(
maxSpendable.gt(
Expand All @@ -405,7 +407,7 @@ const bsc: AppSpec<Transaction> = {
appName: "Binance Smart Chain",
},
dependency: "Ethereum",
testTimeout: 2 * 60 * 1000,
testTimeout,
transactionCheck: ({ maxSpendable }) => {
invariant(
maxSpendable.gt(
Expand Down Expand Up @@ -452,7 +454,7 @@ const polygon: AppSpec<Transaction> = {
appName: "Polygon",
},
dependency: "Ethereum",
testTimeout: 2 * 60 * 1000,
testTimeout,
transactionCheck: ({ maxSpendable }) => {
invariant(
maxSpendable.gt(
Expand Down

0 comments on commit 6d34e73

Please sign in to comment.