@rotorsoft/act-tck 1.27.30 → 1.27.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/store-tck.d.ts.map +1 -1
- package/dist/index.cjs +24 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3141,6 +3141,30 @@ var runStoreTck = (options) => {
|
|
|
3141
3141
|
});
|
|
3142
3142
|
});
|
|
3143
3143
|
describe8("query_streams", () => {
|
|
3144
|
+
it7("keyset pagination visits every stream regardless of name case (#1375)", async () => {
|
|
3145
|
+
const tag = uid();
|
|
3146
|
+
const names = [
|
|
3147
|
+
`${tag}-Bravo`,
|
|
3148
|
+
`${tag}-alpha`,
|
|
3149
|
+
`${tag}-Charlie`,
|
|
3150
|
+
`${tag}-delta`
|
|
3151
|
+
];
|
|
3152
|
+
await store.subscribe(names.map((stream) => ({ stream })));
|
|
3153
|
+
const visited = [];
|
|
3154
|
+
let after;
|
|
3155
|
+
for (; ; ) {
|
|
3156
|
+
const page = [];
|
|
3157
|
+
await store.query_streams((p) => page.push(p.stream), {
|
|
3158
|
+
stream: `${tag}-.*`,
|
|
3159
|
+
after,
|
|
3160
|
+
limit: 1
|
|
3161
|
+
});
|
|
3162
|
+
if (page.length === 0) break;
|
|
3163
|
+
visited.push(...page);
|
|
3164
|
+
after = page.at(-1);
|
|
3165
|
+
}
|
|
3166
|
+
expect8([...visited].sort()).toEqual([...names].sort());
|
|
3167
|
+
});
|
|
3144
3168
|
it7("returns positions filtered by stream regex, exact, source, and source_exact", async () => {
|
|
3145
3169
|
const tag = uid();
|
|
3146
3170
|
const proj1 = `qs-${tag}-projection-tickets`;
|