move some tests around

This commit is contained in:
Thorsten von Eicken 2015-12-18 21:58:23 -08:00
parent 9887c6e1e6
commit de54a9e862
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
function test() {
var req = require("http").get("http://h.voneicken.com:1234/ping", function(res) {
res.on('data', function(data) { console.log("DATA <" + data + ">"); });
res.on('close', function(e) { console.log("RES CLOSED, had error: ", e); });
res.on('error', function(e) { console.log("RES ERROR: ", e); });
console.log("RES:", res);
});
req.on("error", function(e) {
console.log("REQ ERROR: ", e);
});
req.on("close", function(e) {
console.log("REQ CLOSED, had error: ", e);
});
console.log("REQ:", req);
}
test();