Permalink
Browse files

test: add a child domain explicitly

  • Loading branch information...
1 parent fb400b4 commit ee2291eb0d6baa9fb82ed0fef623a3895bc1fc0d @xenyou xenyou committed with bnoordhuis May 1, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/simple/test-domain-multi.js
@@ -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

0 comments on commit ee2291e

Please sign in to comment.