diff options
Diffstat (limited to 'test/parallel/test-trace-events-category-used.js')
-rw-r--r-- | test/parallel/test-trace-events-category-used.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/parallel/test-trace-events-category-used.js b/test/parallel/test-trace-events-category-used.js index 4f9ad69366..249ccd4aa3 100644 --- a/test/parallel/test-trace-events-category-used.js +++ b/test/parallel/test-trace-events-category-used.js @@ -8,9 +8,9 @@ if (!common.isMainThread) const CODE = ` const { internalBinding } = require('internal/test/binding'); - const { categoryGroupEnabled } = internalBinding('trace_events'); + const { isTraceCategoryEnabled } = internalBinding('trace_events'); console.log( - categoryGroupEnabled("custom") + isTraceCategoryEnabled("custom") ); `; @@ -21,6 +21,9 @@ process.chdir(tmpdir.path); const procEnabled = cp.spawn( process.execPath, [ '--trace-event-categories', 'custom', + // make test less noisy since internal/test/binding + // emits a warning. + '--no-warnings', '--expose-internals', '-e', CODE ] ); @@ -35,6 +38,9 @@ procEnabled.once('exit', common.mustCall(() => { const procDisabled = cp.spawn( process.execPath, [ '--trace-event-categories', 'other', + // make test less noisy since internal/test/binding + // emits a warning. + '--no-warnings', '--expose-internals', '-e', CODE ] ); |