interop test: read the store under the record key the blank-field vector set
Some checks failed
CultMesh QUIC native / Build win32-x64 (pull_request) Has been skipped
CultMesh QUIC native / Build linux-x64 (pull_request) Has been skipped
CultMesh QUIC native / Release native binaries (pull_request) Has been skipped
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Failing after 3m0s
CultMesh QUIC native / Verify committed binaries match SHA256SUMS (pull_request) Successful in 46s
Some checks failed
CultMesh QUIC native / Build win32-x64 (pull_request) Has been skipped
CultMesh QUIC native / Build linux-x64 (pull_request) Has been skipped
CultMesh QUIC native / Release native binaries (pull_request) Has been skipped
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Failing after 3m0s
CultMesh QUIC native / Verify committed binaries match SHA256SUMS (pull_request) Successful in 46s
A vector that sets recordKey (zero_width_space_record_key_is_a_name) replaces the harness key, so the admitted case waited for blank:<name> and timed out against the Rust server, and the refused record-key cases counted applications under a key the server never saw. Use the key the document carried. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4b5f343a44
commit
04207007d6
1 changed files with 2 additions and 2 deletions
|
|
@ -331,8 +331,9 @@ for (const target of [rust, csharp]) {
|
|||
for (const blank of vectors.blankFields.cases as { name: string; set: Record<string, unknown>; outcome: "admitted" | "refused" }[]) {
|
||||
test(`blank-field vector ${blank.name}: ${blank.outcome}`, { timeout: 30_000 }, async () => {
|
||||
const s = await receiptSession();
|
||||
const recordKey = `blank:${blank.name}`;
|
||||
const { payloadHex, ...fields } = blank.set;
|
||||
// A case that sets recordKey replaces the harness key, so the store is read under the key the server actually saw.
|
||||
const recordKey = typeof fields.recordKey === "string" ? fields.recordKey : `blank:${blank.name}`;
|
||||
const message = s.put(`blank-${blank.name}`, recordKey, "one", fields);
|
||||
const sent = (message as unknown as { document: Record<string, unknown> }).document;
|
||||
for (const [key, value] of Object.entries(fields)) if (value === null) delete sent[key]; // nil means absent on the wire here
|
||||
|
|
@ -350,7 +351,6 @@ for (const target of [rust, csharp]) {
|
|||
assert.equal(response.messageId, `blank-${blank.name}`);
|
||||
await sleep(200);
|
||||
assert.equal(server.count("applied", recordKey), 0);
|
||||
assert.equal(server.count("applied", "blank:"), 0);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue