add: why-is-node-running diagnostics for win/mac builds
This commit is contained in:
parent
62131cf445
commit
0b6e3dddad
19
conformance/package-lock.json
generated
19
conformance/package-lock.json
generated
@ -19418,6 +19418,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"siginfo": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",
|
||||
"integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g=="
|
||||
},
|
||||
"signal-exit": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
|
||||
@ -19970,6 +19975,11 @@
|
||||
"resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz",
|
||||
"integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w=="
|
||||
},
|
||||
"stackback": {
|
||||
"version": "0.0.2",
|
||||
"resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",
|
||||
"integrity": "sha1-Gsig2Ug4SNFpXkGLbQMaPDzmjjs="
|
||||
},
|
||||
"state-toggle": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/state-toggle/-/state-toggle-1.0.3.tgz",
|
||||
@ -22306,6 +22316,15 @@
|
||||
"resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.0.0.tgz",
|
||||
"integrity": "sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs="
|
||||
},
|
||||
"why-is-node-running": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.2.0.tgz",
|
||||
"integrity": "sha512-rxtN9D0lJaYyP92BR5yoyWecK2txBKmBIuS7GRbOPP5bXsT37/hBqcmTrlrt25DBr9p4WJb6c9LuYSJd89vHRQ==",
|
||||
"requires": {
|
||||
"siginfo": "^2.0.0",
|
||||
"stackback": "0.0.2"
|
||||
}
|
||||
},
|
||||
"wide-align": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
|
||||
|
@ -13,7 +13,8 @@
|
||||
"interface-ipfs-core": "0.137.0",
|
||||
"ipfsd-ctl": "github:ipfs-rust/js-ipfsd-ctl#add_rust_ipfs_http",
|
||||
"mocha": "^7.1.0",
|
||||
"ipfs-http-client": "^44.3.0"
|
||||
"ipfs-http-client": "^44.3.0",
|
||||
"why-is-node-running": "2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rust-ipfs-dep": "github:ipfs-rust/npm-rust-ipfs-dep#master",
|
||||
|
@ -1,3 +1,4 @@
|
||||
const log = require('why-is-node-running')
|
||||
const { createFactory } = require('ipfsd-ctl')
|
||||
const tests = require('interface-ipfs-core')
|
||||
const isDev = process.env.IPFS_RUST_EXEC
|
||||
@ -8,6 +9,12 @@ const ipfsBin = isNode ?
|
||||
process.env.IPFS_RUST_EXEC ? process.env.IPFS_RUST_EXEC : require('rust-ipfs-dep').path()
|
||||
: undefined
|
||||
|
||||
after(() => {
|
||||
const whyIsNodeRunning = setTimeout(() => log(), 1000 * 60)
|
||||
// this should not block shutting down
|
||||
whyIsNodeRunning.unref()
|
||||
})
|
||||
|
||||
const options = {
|
||||
type: 'rust',
|
||||
ipfsBin,
|
||||
|
Loading…
x
Reference in New Issue
Block a user