};
// create server and send it to child
- var serverSucess = false;
- var socketSucess = false;
+ var serverSuccess = false;
+ var socketSuccess = false;
child.on('message', function onReady(msg) {
if (msg.what !== 'ready') return;
child.removeListener('message', onReady);
testServer(function() {
- serverSucess = true;
+ serverSuccess = true;
testSocket(function() {
- socketSucess = true;
+ socketSuccess = true;
child.kill();
});
});
});
process.on('exit', function() {
- assert.ok(serverSucess);
- assert.ok(socketSucess);
+ assert.ok(serverSuccess);
+ assert.ok(socketSuccess);
});
}
var done = 0;
for (var i = 0, l = servers; i < l; i++) {
- testConnection(common.PORT + i, function(sucess) {
- assert.ok(sucess);
+ testConnection(common.PORT + i, function(success) {
+ assert.ok(success);
done += 1;
if (done === servers) {
cb();
var http = require('http');
var N = 1024;
-var bytesRecieved = 0;
+var bytesReceived = 0;
var server_req_complete = false;
var client_res_complete = false;
assert.equal('POST', req.method);
req.on('data', function(chunk) {
- bytesRecieved += chunk.length;
+ bytesReceived += chunk.length;
});
req.on('end', function() {
});
process.on('exit', function() {
- assert.equal(N, bytesRecieved);
+ assert.equal(N, bytesReceived);
assert.equal(true, server_req_complete);
assert.equal(true, client_res_complete);
});
console.log('Server running at http://127.0.0.1:' + common.PORT + '/');
var errorTimer = setTimeout(function() {
- throw new Error('Timeout was not sucessful');
+ throw new Error('Timeout was not successful');
}, 2000);
var x = http.get({port: common.PORT, path: '/'});
putIn.run(['.clear']);
// Tab Complete will return a complex local variable even if the function
-// has paramaters
+// has parameters
putIn.run([
'var top = function (one, two) {',
'var inner = {',
putIn.run(['.clear']);
// currently does not work, but should not break note the inner function
-// def has the params and { on a seperate line
+// def has the params and { on a separate line
putIn.run([
'var top = function () {',
'r = function test (',