Tests: pin the API_KEY_MISSING code on the keyless voice token response

This commit is contained in:
Said Turksever authored and Sameh Khamis committed 2026-11-10 16:11:17 -08:00
1 parent 09d02b6e7a
commit c03a54de40
1 file changed
+4 -1
+4 -1
View File
@@ -150,7 +150,10 @@ test('the installed keyless HUD route stays successful after the voice quota is
const firstToken = await invokeRoute(token);
const secondToken = await invokeRoute(token);
assert.equal(firstToken.statusCode, 503);
assert.deepEqual(firstToken.body, { error: 'OPENAI_API_KEY is not set' });
assert.deepEqual(firstToken.body, {
error: 'OPENAI_API_KEY is not set',
code: 'API_KEY_MISSING',
});
assert.equal(secondToken.statusCode, 429);
for (let attempt = 0; attempt < 2; attempt += 1) {