"dev": true
},
"uglify-js": {
- "version": "3.12.7",
- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.12.7.tgz",
- "integrity": "sha512-SIZhkoh+U/wjW+BHGhVwE9nt8tWJspncloBcFapkpGRwNPqcH8pzX36BXe3TPBjzHWPMUZotpCigak/udWNr1Q==",
+ "version": "3.12.8",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.12.8.tgz",
+ "integrity": "sha512-fvBeuXOsvqjecUtF/l1dwsrrf5y2BCUk9AOJGzGcm6tE7vegku5u/YvqjyDaAGr422PLoLnrxg3EnRvTqsdC1w==",
"dev": true,
"optional": true
},
"benchmark": "npm run build && node benchmarks/bench.js",
"benchmark:debug": "npm run build:dev && node -r source-map-support/register --inspect-brk benchmarks/bench.js",
"benchmark:debug:vscode": "node -r source-map-support/register benchmarks/bench.js",
- "test": "npm run build && nyc mocha --exit --timeout 20000 tests/**/*.test.js",
- "test:debug": "npm run build:dev && mocha -r source-map-support/register --inspect-brk --exit tests/**/*.test.js",
- "test:debug:vscode": "mocha -r source-map-support/register --exit tests/**/*.test.js",
+ "test": "npm run build && nyc mocha --exit --timeout 20000 'tests/**/*.test.js'",
+ "test:debug": "npm run build:dev && mocha -r source-map-support/register --inspect-brk --exit 'tests/**/*.test.js'",
+ "test:debug:vscode": "mocha -r source-map-support/register --exit 'tests/**/*.test.js'",
"sonar": "sonar-scanner",
"coverage": "nyc report --reporter=lcov --check-coverage --lines 80",
"coverage:html": "nyc report --reporter=html --check-coverage --lines 80",
--- /dev/null
+const expect = require('expect')
+const { ClusterWorker } = require('../../lib')
+
+describe('Cluster worker test suite', () => {
+ // Skipped because ClusterWorker would be in main instead of non-main worker
+ it.skip('Verify worker has default maxInactiveTime', () => {
+ const worker = new ClusterWorker(() => {})
+ expect(worker.maxInactiveTime).toEqual(60_000)
+ })
+})
--- /dev/null
+const expect = require('expect')
+const { ThreadWorker } = require('../../lib')
+
+describe('Thread worker test suite', () => {
+ it('Verify worker has default maxInactiveTime', () => {
+ const worker = new ThreadWorker(() => {})
+ expect(worker.maxInactiveTime).toEqual(60_000)
+ })
+})