Skip to content

Commit

Permalink
skip asyncworker test
Browse files Browse the repository at this point in the history
Fixes: nodejs#296
  • Loading branch information
Gabriel Schulhof committed Jul 11, 2018
1 parent 11697fc commit 2130f81
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/asyncworker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
'use strict';
const buildType = process.config.target_defaults.default_configuration;
const assert = require('assert');
const async_hooks = require('async_hooks');
let async_hooks;
try {
async_hooks = require('async_hooks');
} catch (anError) {
console.error('\'async_hooks\' not found - skipping test');
return;
}
const common = require('./common');

test(require(`./build/${buildType}/binding.node`));
Expand Down

0 comments on commit 2130f81

Please sign in to comment.