test: add reproducer for stale plan canvas server

This commit is contained in:
haelyra
2026-08-27 19:46:49 -04:00
parent 5eddf1a3ff
commit 5dc6d85ca4
2 changed files with 74 additions and 1 deletions
+6 -1
View File
@@ -139,7 +139,12 @@ async function main() {
if (await test('GET /health identifies the app and version', async () => {
const res = await request(port, 'GET', '/health');
assert.deepStrictEqual(jsonBody(res), { ok: true, app: 'ecc-plan-canvas', version: '9.9.9-test' });
assert.deepStrictEqual(jsonBody(res), {
ok: true,
app: 'ecc-plan-canvas',
version: '9.9.9-test',
protocolVersion: 2
});
})) passed++; else failed++;
if (await test('requests with a non-loopback Host header are rejected', async () => {