{.used.} import std/[options, sequtils, algorithm], testutils/unittests, libp2p/protobuf/minprotobuf import ../../../waku/v2/protocol/waku_archive, ../../../waku/v2/protocol/waku_archive/driver/queue_driver/queue_driver {.all.}, ../../../waku/v2/protocol/waku_archive/driver/queue_driver/index, ../../../waku/v2/protocol/waku_message, ../../../waku/v2/utils/time, ../testlib/common, ../testlib/waku2 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..