Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test: name unmatched session probes precisely [H5,H17,N26]

Corey Olson29cd52352987
diff --git a/test/hosted-shapes.test.js b/test/hosted-shapes.test.js
index a29e0b9b..9c1561a0 100644
--- a/test/hosted-shapes.test.js
+++ b/test/hosted-shapes.test.js
@@ -1123,13 +1123,13 @@ test('an expired saved pairing preserves a valid identity when its session probe
for (const unavailable of [false, true]) await t.test(unavailable ? 'unavailable probe' : 'valid session', async () => {
let probes = 0;
let listings = 0;
- let unpairedProbes = 0;
+ let unmatchedProbes = 0;
const route = front.route(session, null);
const page = await context.newPage({ phone: true, bootstrap: storedScript('stale-pairing'), route: async request => {
if (new URL(request.url).pathname === '/api/v1/boards') listings += 1;
if (new URL(request.url).pathname === '/api/v1/devices/session') {
probes += 1;
- if (probes > listings) unpairedProbes += 1;
+ if (probes > listings) unmatchedProbes += 1;
if (unavailable) return { kind: 'fulfill', status: 503, headers: { 'content-type': 'application/json' },
body: Buffer.from(JSON.stringify({ version: 1, error: { code: 'RELAY_UNAVAILABLE', message: 'fixture session probe unavailable' } })) };
}
@@ -1151,7 +1151,7 @@ test('an expired saved pairing preserves a valid identity when its session probe
if (unavailable) assert.equal(probes, 1, 'only the cause-specific session probe ran');
else {
assert.ok(probes > 0, 'the opened board performs normal session authorization');
- assert.equal(unpairedProbes, 0, 'no expiry-only session probe runs before or beyond the observed board listings');
+ assert.equal(unmatchedProbes, 0, 'no expiry-only session probe runs before or beyond the observed board listings');
}
const screen = await page.evaluate(READ_SCREEN);
assert.doesNotMatch(screen.words, /browser was removed/iu, 'a valid or unavailable session is not a revocation');