test: remove test-v8-inspector-json-protocol test
Remove parallel/test-v8-inspector-json-protocol, it duplicates the test found in inspector/test-inspector. PR-URL: https://github.com/nodejs/node/pull/9184 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
3d9b379cd0
commit
8e54c968e6
@ -1,22 +0,0 @@
|
||||
// Flags: --inspect={PORT}
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
const assert = require('assert');
|
||||
const http = require('http');
|
||||
|
||||
const options = {
|
||||
path: '/json/protocol',
|
||||
port: common.PORT,
|
||||
host: common.localhostIPv4,
|
||||
};
|
||||
|
||||
http.get(options, common.mustCall((res) => {
|
||||
let body = '';
|
||||
res.setEncoding('utf8');
|
||||
res.on('data', (data) => body += data);
|
||||
res.on('end', common.mustCall(() => {
|
||||
assert(body.length > 0);
|
||||
assert.deepStrictEqual(JSON.stringify(JSON.parse(body)), body);
|
||||
}));
|
||||
}));
|
Loading…
x
Reference in New Issue
Block a user