mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-12 15:54:36 +00:00
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:
parent
6262f01c7c
commit
7de91599d4
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user