gowaku store bugfixes (#1661)

This commit is contained in:
Florin Barbu 2023-10-13 17:21:30 +03:00 committed by GitHub
parent b8d006bee7
commit ce5a48c13c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -48,14 +48,14 @@ describe("Waku Store, page size", function () {
// Determine effectivePageSize for test expectations // Determine effectivePageSize for test expectations
let effectivePageSize = pageSize; let effectivePageSize = pageSize;
if (pageSize === 0) { if (pageSize === 0) {
if (nwaku.type() == "go-waku") {
effectivePageSize = 100;
} else {
effectivePageSize = 20; effectivePageSize = 20;
}
} else if (pageSize > 100) { } else if (pageSize > 100) {
if (nwaku.type() == "go-waku") {
effectivePageSize = 20;
} else {
effectivePageSize = 100; effectivePageSize = 100;
} }
}
waku = await startAndConnectLightNode(nwaku); waku = await startAndConnectLightNode(nwaku);
let messagesRetrieved = 0; let messagesRetrieved = 0;

View File

@ -31,7 +31,7 @@ describe("Waku Store, time filter", function () {
[-19000, -10, 10], [-19000, -10, 10],
[-19000, 1, 4], [-19000, 1, 4],
[-19000, -2, -1], [-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, -1000, 0],
[19000, -10, 10], // message in the future [19000, -10, 10], // message in the future
[-19000, 10, -10] // startTime is newer than endTime [-19000, 10, -10] // startTime is newer than endTime