Skip to content

Commit 4030aed

Browse files
danbevjasnell
authored andcommitted
test: skip test-bindings if inspector is disabled
If node is configured --without-inspector/--without-ssl this test will fail with the following error: Path: inspector/test-bindings inspector.js:8 throw new Error('Inspector is not available'); ^ Error: Inspector is not available at inspector.js:8:9 at NativeModule.compile (bootstrap_node.js:549:7) This commit skips this test if the inspector is disabled. PR-URL: #13186 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent a590709 commit 4030aed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/inspector/test-bindings.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
2-
require('../common');
2+
const common = require('../common');
3+
common.skipIfInspectorDisabled();
34
const assert = require('assert');
45
const inspector = require('inspector');
56
const path = require('path');
@@ -81,7 +82,7 @@ function testSampleDebugSession() {
8182
}, TypeError);
8283
session.post('Debugger.enable', () => cbAsSecondArgCalled = true);
8384
session.post('Debugger.setBreakpointByUrl', {
84-
'lineNumber': 11,
85+
'lineNumber': 12,
8586
'url': path.resolve(__dirname, __filename),
8687
'columnNumber': 0,
8788
'condition': ''

0 commit comments

Comments
 (0)