mirror of https://github.com/lukechilds/node.git
Browse Source
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.x
committed by
Myles Borins
1 changed files with 0 additions and 22 deletions
@ -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…
Reference in new issue