download
raw
381 Bytes
'use strict'
const { test } = require('node:test')
const Response = require('../lib/response')
test('multiple calls to res.destroy should not be called', (t, done) => {
t.plan(2)
const mockReq = {}
const res = new Response(mockReq, (err) => {
t.assert.ok(err)
t.assert.strictEqual(err.code, 'LIGHT_ECONNRESET')
done()
})
res.destroy()
res.destroy()
})

Xet Storage Details

Size:
381 Bytes
·
Xet hash:
78661d0efe2efa02923d2ff3602067374eca2c10035d581a8167889e7949908a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.