Sleep between broadcast and search

This commit is contained in:
Simon Warta 2023-03-02 14:49:34 +01:00
parent a808a8218c
commit dd35029813
2 changed files with 2 additions and 0 deletions

View File

@ -505,6 +505,7 @@ function defaultTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValues)
const txRes = await client.broadcastTxCommit({ tx: tx });
expect(responses.broadcastTxCommitSuccess(txRes)).toEqual(true);
await tendermintSearchIndexUpdated();
// txSearch - you must enable the indexer when running
// tendermint, else you get empty results

View File

@ -506,6 +506,7 @@ function defaultTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValues)
const txRes = await client.broadcastTxCommit({ tx: tx });
expect(responses.broadcastTxCommitSuccess(txRes)).toEqual(true);
await tendermintSearchIndexUpdated();
// txSearch - you must enable the indexer when running
// tendermint, else you get empty results