Browse Source

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>
v6
Ben Noordhuis 8 years ago
parent
commit
8e54c968e6
  1. 22
      test/parallel/test-v8-inspector-json-protocol.js

22
test/parallel/test-v8-inspector-json-protocol.js

@ -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…
Cancel
Save