fixes a bug related to contentTopic type mismatch (#252)

* fixes a bug related to contentTopic type mismatch

* adds used pragma to get rid of unused imports warning
This commit is contained in:
Sanaz Taheri Boshrooyeh 2020-10-30 12:00:14 -07:00 committed by GitHub
parent 6262f01c7c
commit 7de91599d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -5,4 +5,5 @@ import
./v2/test_wakunode,
./v2/test_waku_store,
./v2/test_waku_filter,
./v2/test_rpc_waku
./v2/test_rpc_waku,
./v2/test_waku_pagination

View File

@ -1,3 +1,4 @@
{.used.}
import
std/unittest,
../../waku/node/v2/waku_types,
@ -16,9 +17,9 @@ procSuite "pagination":
test "computeIndex: identical WakuMessages test":
let
wm = WakuMessage(payload: @[byte 1, 2, 3], contentTopic: "topic2")
wm = WakuMessage(payload: @[byte 1, 2, 3], contentTopic: ContentTopic(1))
index1 = wm.computeIndex()
wm2 = WakuMessage(payload: @[byte 1, 2, 3], contentTopic: "topic2")
wm2 = WakuMessage(payload: @[byte 1, 2, 3], contentTopic: ContentTopic(1))
index2 = wm2.computeIndex()
check: