Give blockchain more time to index transactions

Usually not needed but this makes the CI more stable
This commit is contained in:
Simon Warta 2020-06-05 09:44:33 +02:00
parent 765382c905
commit ab45793e7c
5 changed files with 8 additions and 8 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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) {

View File

@ -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,

View File

@ -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,