Merge pull request #394 from CosmWasm/add-missing-sleep

Add missing sleep before transaction search
This commit is contained in:
Simon Warta 2020-08-18 09:49:24 +02:00 committed by GitHub
commit ffc3cd4af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
import { Bech32, fromBase64 } from "@cosmjs/encoding";
import { Coin, coins, Secp256k1Wallet } from "@cosmjs/launchpad";
import { makeSignBytes, Registry } from "@cosmjs/proto-signing";
import { assert } from "@cosmjs/utils";
import { assert, sleep } from "@cosmjs/utils";
import Long from "long";
import { cosmos } from "./codec";
@ -138,6 +138,8 @@ describe("StargateClient.searchTx", () => {
tx: successfulResult.tx,
};
}
await sleep(75); // wait until transactions are indexed
}
});