Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Oct 14, 2024
1 parent 6e39958 commit 45afbcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"sinon": "^15.0.0",
"split2": "^4.0.0",
"standard": "^17.0.0",
"tap": "^16.0.0"
"tap": "^16.0.0",
"why-is-node-running": "^2.3.0"
},
"dependencies": {
"@minimistjs/subarg": "^1.0.0",
Expand Down
9 changes: 8 additions & 1 deletion test/envPort.test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
'use strict'

const why = require('why-is-node-running')
const t = require('tap')
const split = require('split2')
const path = require('path')
const childProcess = require('child_process')
const helper = require('./helper')

setInterval(function () {
console.log(why())
}, 30000).unref()

const lines = [
/Running 1s test @ .*$/,
/10 connections.*$/,
Expand Down Expand Up @@ -46,7 +51,9 @@ const child = childProcess.spawn(process.execPath, [path.join(__dirname, '..'),
})

t.teardown(() => {
child.kill()
try {
child.kill()
} catch {}
})

child
Expand Down

0 comments on commit 45afbcd

Please sign in to comment.