diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-04-15 01:37:27 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-04-15 01:37:27 -0700 |
commit | d2e1b0855f3630ef2be45b477e93d8bc865cc7b7 (patch) | |
tree | 483702c2ab7b7734d32be7e3c3f5a912b36183e5 /test/simple/test-http-head-request.js | |
parent | ac3bc2ed41c18cfd45772ec895afe98a929ab78c (diff) | |
download | node-new-d2e1b0855f3630ef2be45b477e93d8bc865cc7b7.tar.gz |
Move two broken tests to disabled folder
Diffstat (limited to 'test/simple/test-http-head-request.js')
-rw-r--r-- | test/simple/test-http-head-request.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/test/simple/test-http-head-request.js b/test/simple/test-http-head-request.js deleted file mode 100644 index 671e3ae83b..0000000000 --- a/test/simple/test-http-head-request.js +++ /dev/null @@ -1,39 +0,0 @@ -require('../common'); - -var assert = require("assert"); -var http = require("http"); -var sys = require("sys"); - -var body = "hello world"; - -server = http.createServer(function (req, res) { - res.writeHeader(200 , { 'Content-Length': body.length.toString() - , 'Content-Type': 'text/plain' - }); - sys.puts('method: ' + req.method); - if (req.method != 'HEAD') res.write(body); - res.end(); -}); -server.listen(PORT); - -var gotEnd = false; - -server.addListener('listening', function() { - var client = http.createClient(PORT); - var request = client.request("HEAD", "/"); - request.addListener('response', function (response) { - sys.puts('got response'); - response.addListener("data", function () { - process.exit(2); - }); - response.addListener("end", function () { - process.exit(0); - }); - }); - request.end(); -}); - -//give a bit of time for the server to respond before we check it -setTimeout(function() { - process.exit(1); -}, 2000); |