Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: fix test with DTRACE globals
  • Loading branch information
BridgeAR committed Dec 10, 2018
commit daa88083a43ee69b8b99dd025e6a0da3718c55ae
20 changes: 15 additions & 5 deletions test/parallel/test-global.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,28 @@ builtinModules.forEach((moduleName) => {
}
});

assert.deepStrictEqual(
Object.keys(global),
[
{
const expected = [
'global',
'clearImmediate',
'clearInterval',
'clearTimeout',
'setImmediate',
'setInterval',
'setTimeout'
]
);
];
if (global.DTRACE_HTTP_SERVER_RESPONSE) {
expected.unshift(
DTRACE_HTTP_SERVER_RESPONSE,
DTRACE_HTTP_SERVER_REQUEST,
DTRACE_HTTP_CLIENT_RESPONSE,
DTRACE_HTTP_CLIENT_REQUEST,
DTRACE_NET_STREAM_END,
DTRACE_NET_SERVER_CONNECTION
);
}
assert.deepStrictEqual(Object.keys(global), expected);
}

common.allowGlobals('bar', 'foo');

Expand Down