@rotorsoft/act-tck 1.32.0 → 1.34.0

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/index.js CHANGED
@@ -1898,6 +1898,26 @@ var runStoreTck = (options) => {
1898
1898
  );
1899
1899
  expect8(await claimable(s)).toBe(true);
1900
1900
  });
1901
+ it7("surfaces the mark on query_streams positions", async () => {
1902
+ const marked = `ws-pos-${uid()}`;
1903
+ const unmarked = `ws-pos-none-${uid()}`;
1904
+ await store.subscribe([
1905
+ { stream: marked, source: `ws-none-${uid()}`, correlated_at: 12 },
1906
+ { stream: unmarked, source: `ws-none-${uid()}` }
1907
+ ]);
1908
+ const position = async (stream) => {
1909
+ let row;
1910
+ await store.query_streams(
1911
+ (p) => {
1912
+ row = p;
1913
+ },
1914
+ { stream, stream_exact: true }
1915
+ );
1916
+ return row;
1917
+ };
1918
+ expect8((await position(marked))?.correlated_at).toBe(12);
1919
+ expect8((await position(unmarked))?.correlated_at).toBeUndefined();
1920
+ });
1901
1921
  });
1902
1922
  it7("claims a subscribed stream and ack releases the lease", async () => {
1903
1923
  const s = `claim-${uid()}`;