You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
482 B

// Simple tests of most basic domain functionality.
var common = require('../common');
var assert = require('assert');
// timeouts call the callback directly from cc, so need to make sure the
// domain will be used regardless
setTimeout(function() {
var domain = require('domain');
var d = domain.create();
d.run(function() {
process.nextTick(function() {
console.trace('in nexttick', process.domain === d)
assert.equal(process.domain, d);
});
});
});