diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-07-15 11:47:25 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-07-15 14:21:31 -0700 |
commit | 9fd5e3c89cb3664be7491c2da8e7060a0c36e135 (patch) | |
tree | d748de58c1638e852d33374c328a45f6ab8d2268 /test/simple/test-sendfd.js | |
parent | 94728125696ce05f5308ccbc111874e9fa936936 (diff) | |
download | node-new-9fd5e3c89cb3664be7491c2da8e7060a0c36e135.tar.gz |
Update tests to work with module contexts
Diffstat (limited to 'test/simple/test-sendfd.js')
-rw-r--r-- | test/simple/test-sendfd.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/simple/test-sendfd.js b/test/simple/test-sendfd.js index 18eb33146a..52dd622fbe 100644 --- a/test/simple/test-sendfd.js +++ b/test/simple/test-sendfd.js @@ -25,7 +25,8 @@ // seen in a response yet. This is intended to ensure that all blobs // sent out have been relayed back to us. -require('../common'); +common = require("../common"); +assert = common.assert var buffer = require('buffer'); var child_process = require('child_process'); @@ -53,7 +54,7 @@ var logChild = function(d) { d.split('\n').forEach(function(l) { if (l.length > 0) { - sys.debug('CHILD: ' + l); + sys.common.debug('CHILD: ' + l); } }); }; @@ -108,7 +109,7 @@ srv.listen(SOCK_PATH); // Spawn a child running test/fixtures/recvfd.js var cp = child_process.spawn(process.argv[0], - [path.join(fixturesDir, 'recvfd.js'), SOCK_PATH]); + [path.join(common.fixturesDir, 'recvfd.js'), SOCK_PATH]); cp.stdout.addListener('data', logChild); cp.stderr.addListener('data', logChild); |