mirror of
https://github.com/clinicjs/node-clinic.git
synced 2025-12-08 21:26:08 +00:00
14 lines
252 B
JavaScript
14 lines
252 B
JavaScript
'use strict'
|
|
|
|
const http = require('http')
|
|
|
|
http.createServer(handler).listen(0)
|
|
|
|
function handler (req, res) {
|
|
// make this slow
|
|
/* eslint-disable no-empty */
|
|
for (let i = 0; i < 1000000; i++) {}
|
|
/* eslint-enable no-empty */
|
|
res.end('ok')
|
|
}
|