Skip to content

Commit 96de4bb

Browse files
committed
test: widen protocol error timing budget
1 parent 9750f72 commit 96de4bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/zcode-client.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ test('request failures retain only a bounded safe remote error code', async (t)
294294
FAKE_ZCODE_ERROR: 'session/list',
295295
FAKE_ZCODE_ERROR_DATA_CODE: 'model_config_missing',
296296
FAKE_ZCODE_ERROR_DATA_SECRET: 'remote-api-key-must-not-leak',
297-
}));
297+
}, { requestTimeoutMs: 2_000, completionTimeoutMs: 2_000 }));
298298

299299
for (const [name, remoteCode] of [
300300
['oversized', 'x'.repeat(129)],
@@ -307,7 +307,7 @@ test('request failures retain only a bounded safe remote error code', async (t)
307307
assert.deepEqual(error.details, { method: 'session/list', rpcCode: -32099 });
308308
return true;
309309
});
310-
}, { FAKE_ZCODE_ERROR: 'session/list', FAKE_ZCODE_ERROR_DATA_CODE: remoteCode }));
310+
}, { FAKE_ZCODE_ERROR: 'session/list', FAKE_ZCODE_ERROR_DATA_CODE: remoteCode }, { requestTimeoutMs: 2_000, completionTimeoutMs: 2_000 }));
311311
}
312312
});
313313

0 commit comments

Comments
 (0)