From c281b50c448bb6c14f9692cf68d17f8df4b3d242 Mon Sep 17 00:00:00 2001 From: Hans Date: Sat, 23 Jul 2022 01:58:00 +0800 Subject: [PATCH] test: tune post size --- test/cases/http-post-large.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cases/http-post-large.js b/test/cases/http-post-large.js index d586147..18e3f3b 100644 --- a/test/cases/http-post-large.js +++ b/test/cases/http-post-large.js @@ -5,7 +5,7 @@ module.exports = async function ({ HTTP_PORT }) { const res = await axios({ method: 'post', url: `http://localhost:${HTTP_PORT}/post`, - data: 'A'.repeat(1024 * 1024 + 1), + data: 'A'.repeat(10241), }).catch(e => e.response) if (res.status !== 413) { throw new Error(`Response ${res.status}`)