1
0
Fork 0
mirror of synced 2024-07-12 09:45:48 +12:00

Attempt to make JS timeout tests more consistent.

This commit is contained in:
Sam Rose 2024-04-04 10:28:19 +01:00
parent 5675283ee4
commit b6431e57ff
No known key found for this signature in database

View file

@ -1295,7 +1295,7 @@ describe.each([
describe("Formula JS protection", () => {
it("should time out JS execution if a single cell takes too long", async () => {
await config.withEnv({ JS_PER_INVOCATION_TIMEOUT_MS: 20 }, async () => {
await config.withEnv({ JS_PER_INVOCATION_TIMEOUT_MS: 40 }, async () => {
const js = Buffer.from(
`
let i = 0;
@ -1332,11 +1332,11 @@ describe.each([
})
})
it("should time out JS execution if a multiple cells take too long", async () => {
it.only("should time out JS execution if a multiple cells take too long", async () => {
await config.withEnv(
{
JS_PER_INVOCATION_TIMEOUT_MS: 20,
JS_PER_REQUEST_TIMEOUT_MS: 40,
JS_PER_INVOCATION_TIMEOUT_MS: 40,
JS_PER_REQUEST_TIMEOUT_MS: 80,
},
async () => {
const js = Buffer.from(