Skip to content

Commit

Permalink
squash: skip test-trace-events-api.js for workers
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau committed Oct 16, 2018
1 parent 7658368 commit 3e9d309
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/parallel/test-trace-events-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ const common = require('../common');

if (!process.binding('config').hasTracing)
common.skip('missing trace events');
common.skipIfWorker(); // https://github.com/nodejs/node/issues/22767

const assert = require('assert');
const cp = require('child_process');
const fs = require('fs');
const path = require('path');
const fs = require('fs');
const tmpdir = require('../common/tmpdir');
const {
createTracing,
Expand Down Expand Up @@ -107,6 +108,7 @@ if (isChild) {
}

tmpdir.refresh();
process.chdir(tmpdir.path);

const expectedMarks = ['A', 'B'];
const expectedBegins = [
Expand All @@ -120,8 +122,7 @@ if (isChild) {

const proc = cp.fork(__filename,
['child'],
{ cwd: tmpdir.path,
execArgv: [ '--expose-gc',
{ execArgv: [ '--expose-gc',
'--trace-event-categories',
'foo' ] });

Expand Down

0 comments on commit 3e9d309

Please sign in to comment.