From 34464191813928c3ad2882067bff9d73eac81627 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 20 Feb 2019 11:37:31 -0500 Subject: [PATCH] test: remove node-report/test-api.js There does not appear to be any difference between this test and test/node-report/test-api-nohooks.js. PR-URL: https://github.com/nodejs/node/pull/26219 Reviewed-By: Richard Lau Reviewed-By: Rich Trott Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- test/node-report/test-api.js | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 test/node-report/test-api.js diff --git a/test/node-report/test-api.js b/test/node-report/test-api.js deleted file mode 100644 index 232fa1581f35ed..00000000000000 --- a/test/node-report/test-api.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; - -// Testcase to produce report via API call -const common = require('../common'); -common.skipIfReportDisabled(); -if (process.argv[2] === 'child') { - process.report.triggerReport(); -} else { - const helper = require('../common/report.js'); - const spawn = require('child_process').spawn; - const assert = require('assert'); - const tmpdir = require('../common/tmpdir'); - tmpdir.refresh(); - - const child = spawn(process.execPath, - ['--experimental-report', __filename, 'child'], - { cwd: tmpdir.path }); - child.on('exit', common.mustCall((code) => { - const report_msg = 'No reports found'; - const process_msg = 'Process exited unexpectedly'; - assert.strictEqual(code, 0, process_msg + ':' + code); - const reports = helper.findReports(child.pid, tmpdir.path); - assert.strictEqual(reports.length, 1, report_msg); - const report = reports[0]; - helper.validate(report); - })); -}