Skip to content

Commit 9a4e593

Browse files
vlajosbnoordhuis
authored andcommitted
test: minor typo fixes
1 parent 884b253 commit 9a4e593

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,26 +180,26 @@ if (process.argv[2] === 'child') {
180180
};
181181

182182
// create server and send it to child
183-
var serverSucess = false;
184-
var socketSucess = false;
183+
var serverSuccess = false;
184+
var socketSuccess = false;
185185
child.on('message', function onReady(msg) {
186186
if (msg.what !== 'ready') return;
187187
child.removeListener('message', onReady);
188188

189189
testServer(function() {
190-
serverSucess = true;
190+
serverSuccess = true;
191191

192192
testSocket(function() {
193-
socketSucess = true;
193+
socketSuccess = true;
194194
child.kill();
195195
});
196196
});
197197

198198
});
199199

200200
process.on('exit', function() {
201-
assert.ok(serverSucess);
202-
assert.ok(socketSucess);
201+
assert.ok(serverSuccess);
202+
assert.ok(socketSuccess);
203203
});
204204

205205
}

test/simple/test-cluster-disconnect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ if (cluster.isWorker) {
5656
var done = 0;
5757

5858
for (var i = 0, l = servers; i < l; i++) {
59-
testConnection(common.PORT + i, function(sucess) {
60-
assert.ok(sucess);
59+
testConnection(common.PORT + i, function(success) {
60+
assert.ok(success);
6161
done += 1;
6262
if (done === servers) {
6363
cb();

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ var assert = require('assert');
2424
var http = require('http');
2525

2626
var N = 1024;
27-
var bytesRecieved = 0;
27+
var bytesReceived = 0;
2828
var server_req_complete = false;
2929
var client_res_complete = false;
3030

3131
var server = http.createServer(function(req, res) {
3232
assert.equal('POST', req.method);
3333

3434
req.on('data', function(chunk) {
35-
bytesRecieved += chunk.length;
35+
bytesReceived += chunk.length;
3636
});
3737

3838
req.on('end', function() {
@@ -68,7 +68,7 @@ server.on('listening', function() {
6868
});
6969

7070
process.on('exit', function() {
71-
assert.equal(N, bytesRecieved);
71+
assert.equal(N, bytesReceived);
7272
assert.equal(true, server_req_complete);
7373
assert.equal(true, client_res_complete);
7474
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ server.listen(common.PORT, function() {
3838
console.log('Server running at http://127.0.0.1:' + common.PORT + '/');
3939

4040
var errorTimer = setTimeout(function() {
41-
throw new Error('Timeout was not sucessful');
41+
throw new Error('Timeout was not successful');
4242
}, 2000);
4343

4444
var x = http.get({port: common.PORT, path: '/'});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ testMe.complete('inner.o', function(error, data) {
108108
putIn.run(['.clear']);
109109

110110
// Tab Complete will return a complex local variable even if the function
111-
// has paramaters
111+
// has parameters
112112
putIn.run([
113113
'var top = function (one, two) {',
114114
'var inner = {',
@@ -137,7 +137,7 @@ testMe.complete('inner.o', function(error, data) {
137137
putIn.run(['.clear']);
138138

139139
// currently does not work, but should not break note the inner function
140-
// def has the params and { on a seperate line
140+
// def has the params and { on a separate line
141141
putIn.run([
142142
'var top = function () {',
143143
'r = function test (',

0 commit comments

Comments
 (0)