Browse Source

test: minor typo fixes

v0.10.11-release
Veres Lajos 12 years ago
committed by Ben Noordhuis
parent
commit
9a4e5937ee
  1. 12
      test/simple/test-child-process-fork-net.js
  2. 4
      test/simple/test-cluster-disconnect.js
  3. 6
      test/simple/test-http-client-upload-buf.js
  4. 2
      test/simple/test-http-set-timeout.js
  5. 4
      test/simple/test-repl-tab-complete.js

12
test/simple/test-child-process-fork-net.js

@ -180,17 +180,17 @@ if (process.argv[2] === 'child') {
};
// 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();
});
});
@ -198,8 +198,8 @@ if (process.argv[2] === 'child') {
});
process.on('exit', function() {
assert.ok(serverSucess);
assert.ok(socketSucess);
assert.ok(serverSuccess);
assert.ok(socketSuccess);
});
}

4
test/simple/test-cluster-disconnect.js

@ -56,8 +56,8 @@ if (cluster.isWorker) {
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();

6
test/simple/test-http-client-upload-buf.js

@ -24,7 +24,7 @@ var assert = require('assert');
var http = require('http');
var N = 1024;
var bytesRecieved = 0;
var bytesReceived = 0;
var server_req_complete = false;
var client_res_complete = false;
@ -32,7 +32,7 @@ var server = http.createServer(function(req, res) {
assert.equal('POST', req.method);
req.on('data', function(chunk) {
bytesRecieved += chunk.length;
bytesReceived += chunk.length;
});
req.on('end', function() {
@ -68,7 +68,7 @@ server.on('listening', 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);
});

2
test/simple/test-http-set-timeout.js

@ -38,7 +38,7 @@ server.listen(common.PORT, function() {
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: '/'});

4
test/simple/test-repl-tab-complete.js

@ -108,7 +108,7 @@ testMe.complete('inner.o', function(error, data) {
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 = {',
@ -137,7 +137,7 @@ testMe.complete('inner.o', function(error, data) {
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 (',

Loading…
Cancel
Save