Skip to content

Commit 0eab77c

Browse files
gibfahnaddaleax
authored andcommitted
test: allow inspector to reopen with same port
Test checks that if you open the inspector with '0' (pick a random free port), close it, then reopen it, you get a different port. However this isn't necessarily true. PR-URL: #14320 Fixes: #14316 Refs: #14316 (comment) Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 9bbbf12 commit 0eab77c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/parallel/test-inspector-open.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ function tryToCloseWhenClosed(msg) {
6868
function reopenAfterClose(msg) {
6969
assert.strictEqual(msg.cmd, 'url');
7070
const port = url.parse(msg.url).port;
71-
assert.notStrictEqual(port, firstPort);
7271
ping(port, (err) => {
7372
assert.ifError(err);
7473
process.exit();

0 commit comments

Comments
 (0)