| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5ada45b commit 1167171
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,7 +26,7 @@ receiver = net.createServer(function(socket) { | |||
| 26 | 26 | ||
| 27 | 27 | /* To signal the test runne we're up and listening */ | |
| 28 | 28 | receiver.on('listening', function() { | |
| 29 | - common.print('ready'); | ||
| 29 | + console.log('ready'); | ||
| 30 | 30 | }); | |
| 31 | 31 | ||
| 32 | 32 | receiver.listen(path); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ for (var i = 0; i < bytes; i++) { | |||
| 19 | 19 | var server = net.createServer(function(c) { | |
| 20 | 20 | console.log('connected'); | |
| 21 | 21 | total_connections++; | |
| 22 | - common.print('#'); | ||
| 22 | + console.log('#'); | ||
| 23 | 23 | c.write(body); | |
| 24 | 24 | c.end(); | |
| 25 | 25 | }); | |
@@ -32,7 +32,7 @@ function runClient(callback) { | |||
| 32 | 32 | client.setEncoding('utf8'); | |
| 33 | 33 | ||
| 34 | 34 | client.on('connect', function() { | |
| 35 | - common.print('c'); | ||
| 35 | + console.log('c'); | ||
| 36 | 36 | client.recved = ''; | |
| 37 | 37 | client.connections += 1; | |
| 38 | 38 | }); | |
@@ -51,7 +51,7 @@ function runClient(callback) { | |||
| 51 | 51 | }); | |
| 52 | 52 | ||
| 53 | 53 | client.on('close', function(had_error) { | |
| 54 | - common.print('.'); | ||
| 54 | + console.log('.'); | ||
| 55 | 55 | assert.equal(false, had_error); | |
| 56 | 56 | assert.equal(bytes, client.recved.length); | |
| 57 | 57 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,7 @@ server.on('listening', function() { | |||
| 24 | 24 | var client = net.createConnection(common.PORT); | |
| 25 | 25 | client.setEncoding('ascii'); | |
| 26 | 26 | client.on('data', function(d) { | |
| 27 | - common.print(d); | ||
| 27 | + console.log(d); | ||
| 28 | 28 | recv += d; | |
| 29 | 29 | }); | |
| 30 | 30 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,7 @@ function test(size, useBuffer, cb) { | |||
| 24 | 24 | fs.unlinkSync(tmpFile); | |
| 25 | 25 | } catch (e) {} | |
| 26 | 26 | ||
| 27 | - common.print(size + ' chars to ' + tmpFile + '...'); | ||
| 27 | + console.log(size + ' chars to ' + tmpFile + '...'); | ||
| 28 | 28 | ||
| 29 | 29 | childProcess.exec(cmd, function(err) { | |
| 30 | 30 | if (err) throw err; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments