Skip to content

Commit be0fb67

Browse files
committed
try to fix failing test in ci (passes locally)
1 parent 16cc13d commit be0fb67

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,14 +390,13 @@ test('should support multiple files', async () => {
390390
test('should throw on default limit', async () => {
391391
const server = createServer(async (req: ReqWithBody, res) => {
392392
await text()(req, res, (err) => {
393-
console.log('here')
394393
if (err) res.writeHead(413).end(err.message)
395-
else res.end('ok')
394+
else res.end(req.body)
396395
})
397396
})
398397

399398
await makeFetch(server)('/', {
400-
body: new Uint8Array(Buffer.alloc(104897728, 'a').buffer),
399+
body: new Uint8Array(Buffer.alloc(200 * 1024 ** 2, 'a').buffer),
401400
method: 'POST',
402401
headers: {
403402
Accept: 'text/plain',

0 commit comments

Comments
 (0)