add hw2
This commit is contained in:
12
node_modules/pino/test/fixtures/broken-pipe/syncfalse.js
generated
vendored
Normal file
12
node_modules/pino/test/fixtures/broken-pipe/syncfalse.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict'
|
||||
|
||||
global.process = { __proto__: process, pid: 123456 }
|
||||
Date.now = function () { return 1459875739796 }
|
||||
require('os').hostname = function () { return 'abcdefghijklmnopqr' }
|
||||
|
||||
const pino = require('../../..')
|
||||
const logger = pino(pino.destination({ sync: false }))
|
||||
|
||||
for (var i = 0; i < 1000; i++) {
|
||||
logger.info('hello world')
|
||||
}
|
||||
Reference in New Issue
Block a user