{.used.} import std/[options, sequtils, algorithm], testutils/unittests, libp2p/protobuf/minprotobuf import ../../../waku/v2/waku_archive, ../../../waku/v2/waku_archive/driver/queue_driver/queue_driver {.all.}, ../../../waku/v2/waku_archive/driver/queue_driver/index, ../../../waku/v2/waku_core, ../../../waku/v2/utils/time, ../testlib/common, ../testlib/wakucore proc getTestQueueDriver(numMessages: int): QueueDriver = let testQueueDriver = QueueDriver.new(numMessages) var data {.noinit.}: array[32, byte] for x in data.mitems: x = 1 for i in 0..