mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Integrate til into api
This commit is contained in:
@@ -38,6 +38,8 @@ func (t testBidsResponse) Len() int {
|
||||
return len(t.Bids)
|
||||
}
|
||||
|
||||
func (t testBidsResponse) New() Pendinger { return &testBidsResponse{} }
|
||||
|
||||
func genTestBids(blocks []common.Block, coordinators []historydb.CoordinatorAPI, bids []common.Bid) []testBid {
|
||||
tBids := []testBid{}
|
||||
for _, bid := range bids {
|
||||
@@ -113,7 +115,7 @@ func TestGetBids(t *testing.T) {
|
||||
// Mixed filters
|
||||
fetchedBids = []testBid{}
|
||||
bidderAddress = tc.bids[1].Bidder
|
||||
slotNum = tc.bids[5].SlotNum
|
||||
slotNum = tc.bids[1].SlotNum
|
||||
path = fmt.Sprintf("%s?bidderAddr=%s&slotNum=%d&limit=%d&fromItem=", endpoint, bidderAddress.String(), slotNum, limit)
|
||||
err = doGoodReqPaginated(path, historydb.OrderAsc, &testBidsResponse{}, appendIter)
|
||||
assert.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user