Merge PR #3550: Speed up CLI tests

This commit is contained in:
Jack Zampolin 2019-02-07 14:56:05 -08:00 committed by Christopher Goes
parent dff6d0e462
commit 6a66796b71
1 changed files with 5 additions and 2 deletions

View File

@ -532,10 +532,13 @@ func TestGaiaCLIQueryTxPagination(t *testing.T) {
fooAddr := f.KeyAddress(keyFoo)
barAddr := f.KeyAddress(keyBar)
accFoo := f.QueryAccount(fooAddr)
seq := accFoo.GetSequence()
for i := 1; i <= 30; i++ {
success, _, _ := f.TxSend(keyFoo, barAddr, sdk.NewInt64Coin(fooDenom, int64(i)))
success, _, _ := f.TxSend(keyFoo, barAddr, sdk.NewInt64Coin(fooDenom, int64(i)), fmt.Sprintf("--sequence=%d", seq))
require.True(t, success)
tests.WaitForNextNBlocksTM(1, f.Port)
seq++
}
// perPage = 15, 2 pages