test: minor typo fixes
authorVeres Lajos <vlajos@gmail.com>
Wed, 12 Jun 2013 22:51:17 +0000 (23:51 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 13 Jun 2013 11:33:06 +0000 (13:33 +0200)
test/simple/test-child-process-fork-net.js
test/simple/test-cluster-disconnect.js
test/simple/test-http-client-upload-buf.js
test/simple/test-http-set-timeout.js
test/simple/test-repl-tab-complete.js

index 39b22d2ab47a9b7a8549ea74747e363fcd8cf578..feb2588fe25ef3717def477ecf698a83adee991e 100644 (file)
@@ -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);
   });
 
 }
index 5b50261a25a5b2201eb3dece6f263de29f64d580..8fbdb93385148608f6e7f1cfd473f9ac542e09e6 100644 (file)
@@ -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();
index 73e07e7f96a71b3c64ca9ae059367ed4e5aadf2d..d607ea88bb69a2871a9df596b0ae42152363bdd8 100644 (file)
@@ -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);
 });
index 1feb946f7814b98ba75dba056b4f985297b9867a..01d182b34c508bbddc1d3d4aca9a76435b896eab 100644 (file)
@@ -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: '/'});
index 4e9df6b632655d48c541c33f2a5b21bbffb8e370..591cd32e98c6633ace3b330e4187cca0d8d80538 100644 (file)
@@ -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 (',