test: infer the session send return type in refusal coverage

Avoid hardcoding Promise<void> so the test also typechecks with PR154's Promise<boolean> admission result. Type-only correction; no product behavior changes.
This commit is contained in:
amosblomqvist
2026-10-27 19:17:27 +02:00
parent 3b29b5e9e7
commit 3b97056d01
+1 -1
View File
@@ -60,7 +60,7 @@ describe("Retry owns no composer recovery draft", () => {
return new Response(body, { status: 503 });
},
});
let request!: Promise<void>;
let request!: ReturnType<SessionModel["send"]>;
retryFailedResponse((input) => request = model.send(input), submittedDraft);
await request;
assert.equal(model.getState().error?.message, body, "503 stays raw for existing setup/picker routing");