From ab45793e7c37da9171307a58afb0987abe4bf9ee Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 5 Jun 2020 09:44:33 +0200 Subject: [PATCH] Give blockchain more time to index transactions Usually not needed but this makes the CI more stable --- packages/cosmwasm/src/cosmwasmclient.searchtx.spec.ts | 4 ++-- packages/cosmwasm/src/restclient.spec.ts | 4 ++-- packages/faucet/src/faucet.ts | 2 +- packages/sdk38/src/cosmosclient.searchtx.spec.ts | 2 +- packages/sdk38/src/restclient.spec.ts | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/cosmwasm/src/cosmwasmclient.searchtx.spec.ts b/packages/cosmwasm/src/cosmwasmclient.searchtx.spec.ts index 23115b8e32..03f2664ac7 100644 --- a/packages/cosmwasm/src/cosmwasmclient.searchtx.spec.ts +++ b/packages/cosmwasm/src/cosmwasmclient.searchtx.spec.ts @@ -59,7 +59,7 @@ describe("CosmWasmClient.searchTx", () => { amount: "1234567", }; const result = await client.sendTokens(recipient, [transferAmount]); - await sleep(50); // wait until tx is indexed + await sleep(75); // wait until tx is indexed const txDetails = await new RestClient(wasmd.endpoint).txById(result.transactionHash); sendSuccessful = { sender: alice.address0, @@ -137,7 +137,7 @@ describe("CosmWasmClient.searchTx", () => { }, }; const result = await client.execute(hashInstance, msg); - await sleep(50); // wait until tx is indexed + await sleep(75); // wait until tx is indexed const txDetails = await new RestClient(wasmd.endpoint).txById(result.transactionHash); postedExecute = { sender: alice.address0, diff --git a/packages/cosmwasm/src/restclient.spec.ts b/packages/cosmwasm/src/restclient.spec.ts index 13e16441ff..ad4d37990b 100644 --- a/packages/cosmwasm/src/restclient.spec.ts +++ b/packages/cosmwasm/src/restclient.spec.ts @@ -418,7 +418,7 @@ describe("RestClient", () => { }; } - await sleep(50); // wait until transactions are indexed + await sleep(75); // wait until transactions are indexed } }); @@ -499,7 +499,7 @@ describe("RestClient", () => { ]; const result = await client.sendTokens(recipient, transferAmount); - await sleep(50); // wait until tx is indexed + await sleep(75); // wait until tx is indexed const txDetails = await new RestClient(wasmd.endpoint).txById(result.transactionHash); posted = { sender: alice.address0, diff --git a/packages/faucet/src/faucet.ts b/packages/faucet/src/faucet.ts index 531f6437c7..9fe0655e1a 100644 --- a/packages/faucet/src/faucet.ts +++ b/packages/faucet/src/faucet.ts @@ -158,7 +158,7 @@ export class Faucet { for (const job of jobs) { if (this.logging) logSendJob(job, this.tokenConfig); await this.send(job); - await sleep(50); + await sleep(75); } if (this.logging) { diff --git a/packages/sdk38/src/cosmosclient.searchtx.spec.ts b/packages/sdk38/src/cosmosclient.searchtx.spec.ts index 3fd04d9eef..c33e924719 100644 --- a/packages/sdk38/src/cosmosclient.searchtx.spec.ts +++ b/packages/sdk38/src/cosmosclient.searchtx.spec.ts @@ -51,7 +51,7 @@ describe("CosmosClient.searchTx", () => { amount: "1234567", }; const result = await client.sendTokens(recipient, [transferAmount]); - await sleep(50); // wait until tx is indexed + await sleep(75); // wait until tx is indexed const txDetails = await new RestClient(wasmd.endpoint).txById(result.transactionHash); sendSuccessful = { sender: faucet.address, diff --git a/packages/sdk38/src/restclient.spec.ts b/packages/sdk38/src/restclient.spec.ts index 7dc391a497..ef0fd9d5af 100644 --- a/packages/sdk38/src/restclient.spec.ts +++ b/packages/sdk38/src/restclient.spec.ts @@ -290,7 +290,7 @@ describe("RestClient", () => { }; } - await sleep(50); // wait until transactions are indexed + await sleep(75); // wait until transactions are indexed } }); @@ -371,7 +371,7 @@ describe("RestClient", () => { ]; const result = await client.sendTokens(recipient, transferAmount); - await sleep(50); // wait until tx is indexed + await sleep(75); // wait until tx is indexed const txDetails = await new RestClient(wasmd.endpoint).txById(result.transactionHash); posted = { sender: faucet.address,