Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
test: add a child domain explicitly
  • Loading branch information
xenyou authored and bnoordhuis committed May 2, 2012
1 parent fb400b4 commit ee2291e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/simple/test-domain-multi.js
Expand Up @@ -43,10 +43,9 @@ a.on('error', function(er) {

var http = require('http');
var server = http.createServer(function (req, res) {
// child domain.
// implicitly added to a, because we're in a when
// it is created.
// child domain of a.
var b = domain.create();
a.add(b);

// treat these EE objects as if they are a part of the b domain
// so, an 'error' event on them propagates to the domain, rather
Expand Down

0 comments on commit ee2291e

Please sign in to comment.