|
@ -3,6 +3,7 @@ package client_test |
|
|
import ( |
|
|
import ( |
|
|
"bytes" |
|
|
"bytes" |
|
|
"fmt" |
|
|
"fmt" |
|
|
|
|
|
"math" |
|
|
"math/rand" |
|
|
"math/rand" |
|
|
"net/http" |
|
|
"net/http" |
|
|
"strings" |
|
|
"strings" |
|
@ -508,7 +509,7 @@ func TestTxSearch(t *testing.T) { |
|
|
seen := map[int64]bool{} |
|
|
seen := map[int64]bool{} |
|
|
maxHeight := int64(0) |
|
|
maxHeight := int64(0) |
|
|
perPage := 3 |
|
|
perPage := 3 |
|
|
pages := txCount/perPage + 1 |
|
|
|
|
|
|
|
|
pages := int(math.Ceil(float64(txCount) / float64(perPage))) |
|
|
for page := 1; page <= pages; page++ { |
|
|
for page := 1; page <= pages; page++ { |
|
|
result, err = c.TxSearch("tx.height >= 1", false, page, perPage, "asc") |
|
|
result, err = c.TxSearch("tx.height >= 1", false, page, perPage, "asc") |
|
|
require.NoError(t, err) |
|
|
require.NoError(t, err) |
|
|