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-http-write-empty-string.js | |
parent | 94728125696ce05f5308ccbc111874e9fa936936 (diff) | |
download | node-new-9fd5e3c89cb3664be7491c2da8e7060a0c36e135.tar.gz |
Update tests to work with module contexts
Diffstat (limited to 'test/simple/test-http-write-empty-string.js')
-rw-r--r-- | test/simple/test-http-write-empty-string.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/simple/test-http-write-empty-string.js b/test/simple/test-http-write-empty-string.js index 3b430c8b6c..afe7f7f034 100644 --- a/test/simple/test-http-write-empty-string.js +++ b/test/simple/test-http-write-empty-string.js @@ -1,6 +1,6 @@ -require('../common'); +common = require("../common"); +assert = common.assert -sys = require('sys'); http = require('http'); assert = require('assert'); @@ -24,8 +24,8 @@ process.addListener('exit', function () { }); -server.listen(PORT, function () { - var client = http.createClient(PORT); +server.listen(common.PORT, function () { + var client = http.createClient(common.PORT); var req = client.request("/"); req.end(); req.addListener('response', function (res) { @@ -34,7 +34,7 @@ server.listen(PORT, function () { res.addListener('data', function (chunk) { response += chunk; }); - sys.error("Got /hello response"); + common.error("Got /hello response"); }); }); |