Skip to content

Commit

Permalink
Further fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
s1fr0 committed Feb 17, 2022
1 parent 3ac4f65 commit fe09c2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/v2/test_pagination_utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import
chronos,
stew/byteutils,
libp2p/crypto/crypto,
../../waku/v2/utils/pagination
../../waku/v2/utils/pagination,
../../waku/v2/utils/time

procSuite "Pagination utils":
Expand Down
14 changes: 7 additions & 7 deletions tests/v2/test_waku_store_queue.nim
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ procSuite "Sorted store queue":
# First page
pInfo.pageSize == 3
pInfo.direction == PagingDirection.FORWARD
pInfo.cursor.senderTime == 3.0
pInfo.cursor.senderTime == Timestamp(3)
err == HistoryResponseError.NONE
res.mapIt(it.timestamp.int) == @[1,2,3]

Expand All @@ -106,7 +106,7 @@ procSuite "Sorted store queue":
pInfo.direction == PagingDirection.FORWARD
pInfo.cursor.senderTime == Timestamp(5)
err == HistoryResponseError.NONE
res.mapIt(it.timestamp.int64) == @[4,5]
res.mapIt(it.timestamp.int) == @[4,5]

(res, pInfo, err) = testStoreQueue.getPage(predicate,
pInfo)
Expand All @@ -132,7 +132,7 @@ procSuite "Sorted store queue":
pInfo.direction == PagingDirection.BACKWARD
pInfo.cursor.senderTime == Timestamp(3)
err == HistoryResponseError.NONE
res.mapIt(it.timestamp.int64) == @[3,4,5]
res.mapIt(it.timestamp.int) == @[3,4,5]


(res, pInfo, err) = testStoreQueue.getPage(predicate,
Expand All @@ -144,7 +144,7 @@ procSuite "Sorted store queue":
pInfo.direction == PagingDirection.BACKWARD
pInfo.cursor.senderTime == Timestamp(1)
err == HistoryResponseError.NONE
res.mapIt(it.timestamp.int64) == @[1,2]
res.mapIt(it.timestamp.int) == @[1,2]

(res, pInfo, err) = testStoreQueue.getPage(predicate,
pInfo)
Expand Down Expand Up @@ -173,7 +173,7 @@ procSuite "Sorted store queue":
pInfo.direction == PagingDirection.FORWARD
pInfo.cursor.senderTime == Timestamp(4)
err == HistoryResponseError.NONE
res.mapIt(it.timestamp.int64) == @[2,4]
res.mapIt(it.timestamp.int) == @[2,4]

(res, pInfo, err) = testStoreQueue.getPage(onlyEvenTimes,
pInfo)
Expand All @@ -198,7 +198,7 @@ procSuite "Sorted store queue":
pInfo.direction == PagingDirection.BACKWARD
pInfo.cursor.senderTime == Timestamp(3)
err == HistoryResponseError.NONE
res.mapIt(it.timestamp.int64) == @[3,5]
res.mapIt(it.timestamp.int) == @[3,5]

(res, pInfo, err) = testStoreQueue.getPage(onlyOddTimes,
pInfo)
Expand All @@ -209,7 +209,7 @@ procSuite "Sorted store queue":
pInfo.direction == PagingDirection.BACKWARD
pInfo.cursor.senderTime == Timestamp(1)
err == HistoryResponseError.NONE
res.mapIt(it.timestamp.int64) == @[1]
res.mapIt(it.timestamp.int) == @[1]

(res, pInfo, err) = testStoreQueue.getPage(onlyOddTimes,
pInfo)
Expand Down

0 comments on commit fe09c2a

Please sign in to comment.