Browse Source

rpc: fix txsearch tests (#4438)

pull/4435/head
Erik Grinaker 5 years ago
committed by GitHub
parent
commit
403f43a477
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      rpc/client/rpc_test.go

+ 2
- 1
rpc/client/rpc_test.go View File

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


Loading…
Cancel
Save