From 7de91599d42d0288d5f588897fa58e1101ac5397 Mon Sep 17 00:00:00 2001 From: Sanaz Taheri Boshrooyeh <35961250+staheri14@users.noreply.github.com> Date: Fri, 30 Oct 2020 12:00:14 -0700 Subject: [PATCH] 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 --- tests/all_tests_v2.nim | 3 ++- tests/v2/test_waku_pagination.nim | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/all_tests_v2.nim b/tests/all_tests_v2.nim index 358712ed6..5102f8786 100644 --- a/tests/all_tests_v2.nim +++ b/tests/all_tests_v2.nim @@ -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 diff --git a/tests/v2/test_waku_pagination.nim b/tests/v2/test_waku_pagination.nim index 940520039..48db4423d 100644 --- a/tests/v2/test_waku_pagination.nim +++ b/tests/v2/test_waku_pagination.nim @@ -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: