From ce5a48c13ca17998d941935f46084e992f5e851a Mon Sep 17 00:00:00 2001 From: Florin Barbu Date: Fri, 13 Oct 2023 17:21:30 +0300 Subject: [PATCH] gowaku store bugfixes (#1661) --- packages/tests/tests/store/page_size.node.spec.ts | 12 ++++++------ packages/tests/tests/store/time_filter.node.spec.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/tests/tests/store/page_size.node.spec.ts b/packages/tests/tests/store/page_size.node.spec.ts index cfa924ce95..dd280b531a 100644 --- a/packages/tests/tests/store/page_size.node.spec.ts +++ b/packages/tests/tests/store/page_size.node.spec.ts @@ -48,13 +48,13 @@ describe("Waku Store, page size", function () { // Determine effectivePageSize for test expectations let effectivePageSize = pageSize; if (pageSize === 0) { - if (nwaku.type() == "go-waku") { - effectivePageSize = 100; - } else { - effectivePageSize = 20; - } + effectivePageSize = 20; } else if (pageSize > 100) { - effectivePageSize = 100; + if (nwaku.type() == "go-waku") { + effectivePageSize = 20; + } else { + effectivePageSize = 100; + } } waku = await startAndConnectLightNode(nwaku); diff --git a/packages/tests/tests/store/time_filter.node.spec.ts b/packages/tests/tests/store/time_filter.node.spec.ts index 44315e013f..fea2cd2efc 100644 --- a/packages/tests/tests/store/time_filter.node.spec.ts +++ b/packages/tests/tests/store/time_filter.node.spec.ts @@ -31,7 +31,7 @@ describe("Waku Store, time filter", function () { [-19000, -10, 10], [-19000, 1, 4], [-19000, -2, -1], - // [-19000, 0, 1000], // skipped for now because it fails on gowaku which returns messages > startTime + [-19000, 0, 1000], [-19000, -1000, 0], [19000, -10, 10], // message in the future [-19000, 10, -10] // startTime is newer than endTime