mirror of https://github.com/waku-org/js-waku.git
gowaku store bugfixes (#1661)
This commit is contained in:
parent
b8d006bee7
commit
ce5a48c13c
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue