socket.addListener("timeout", function () {
console.log("server timeout");
timeouttime = new Date;
- common.p(timeouttime);
+ console.dir(timeouttime);
socket.destroy();
});
if (exchanges == 5) {
console.log("wait for timeout - should come in " + timeout + " ms");
starttime = new Date;
- common.p(starttime);
+ console.dir(starttime);
}
}
});
// Try resolution without callback
dns.getHostByName('localhost', function (error, result) {
- common.p(result);
+ console.dir(result);
assert.deepEqual(['127.0.0.1'], result);
});
dns.getHostByName('127.0.0.1', function (error, result) {
- common.p(result);
+ console.dir(result);
assert.deepEqual(['127.0.0.1'], result);
});
dns.lookup('ipv6.google.com', function (error, result, addressType) {
if (error) throw error;
- common.p(arguments);
+ console.dir(arguments);
//assert.equal('string', typeof result);
assert.equal(6, addressType);
});
pwd(function (result) {
- common.p(result);
+ console.dir(result);
assert.equal(true, result.length > 1);
assert.equal("\n", result[result.length-1]);
});
assert.equal(false, err.killed);
} else {
success_count++;
- common.p(stdout);
+ console.dir(stdout);
}
});
console.log("stderr: " + JSON.stringify(stderr));
} else {
success_count++;
- common.p(stdout);
+ console.dir(stdout);
assert.equal(true, stdout != "");
}
});
if (err) {
got_error = true;
} else {
- common.p(stats);
+ console.dir(stats);
assert.ok(stats.mtime instanceof Date);
success_count++;
}
if (err) {
got_error = true;
} else {
- common.p(stats);
+ console.dir(stats);
assert.ok(stats.mtime instanceof Date);
success_count++;
}
if (err) {
got_error = true;
} else {
- common.p(stats);
+ console.dir(stats);
assert.ok(stats.mtime instanceof Date);
success_count++;
fs.close(fd);
got_error = true;
}
if (stats) {
- common.p(stats);
+ console.dir(stats);
assert.ok(stats.mtime instanceof Date);
success_count++;
}
if (err) {
got_error = true;
} else {
- common.p(s);
+ console.dir(s);
success_count++;
console.log("isDirectory: " + JSON.stringify( s.isDirectory() ) );
assert.equal("GET", req.method);
assert.equal("/hello", url.parse(req.url).pathname);
- common.p(req.headers);
+ console.dir(req.headers);
assert.equal(true, "accept" in req.headers);
assert.equal("*/*", req.headers["accept"]);
});
c.addListener("close", function () {
- common.p(recv);
+ console.dir(recv);
echoServer.close();
});
});
console.log('readdirSync ' + readdirDir);
var f = fs.readdirSync(readdirDir);
-common.p(f);
+console.dir(f);
assert.deepEqual(files, f.sort());
console.log("error");
got_error = true;
} else {
- common.p(f);
+ console.dir(f);
assert.deepEqual(files, f.sort());
}
});