Skip to content

Commit

Permalink
test: increase max-retries
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Aug 29, 2024
1 parent 5a387b9 commit 093b875
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions multichain-testing/test/auto-stake-it.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ const autoStakeItScenario = test.macro({
() => remoteQueryClient.queryDelegations(icaAddress),
({ delegation_responses }) => !!delegation_responses.length,
`delegations visible on ${chainName}`,
{ maxRetries: 18 },
);
t.log('delegation balance', delegation_responses[0]?.balance);
t.like(
Expand Down
6 changes: 4 additions & 2 deletions multichain-testing/tools/ibc-transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ type SimpleChainAddress = {
chainName: string;
};

export const DEFAULT_TIMEOUT_NS = 1893456000000000000n;
// 2030-01-01T00:00:00Z
export const DEFAULT_TIMEOUT_NS =
1893456000n * NANOSECONDS_PER_MILLISECOND * MILLISECONDS_PER_SECOND;

/**
* @param {number} [ms] current time in ms (e.g. Date.now())
* @param {bigint} [minutes=5n] number of minutes in the future
* @returns {bigint} nanosecond timestamp 5 mins in the future */
* @returns {bigint} nanosecond timestamp absolute since Unix epoch */
export const getTimeout = (ms: number = 0, minutes = 5n) => {
// UNTIL #9200. timestamps are getting clobbered somewhere along the way
// and we are observing failed transfers with timeouts years in the past.
Expand Down

0 comments on commit 093b875

Please sign in to comment.