diff options
author | Rich Trott <rtrott@gmail.com> | 2015-09-26 15:49:04 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2015-09-28 11:15:06 -0700 |
commit | 44efd66132f9f9058d7ead0547d9ab2d3e06b528 (patch) | |
tree | 0393f0c662fafc87c49905547c9b71375baa8891 /test/parallel/test-http.js | |
parent | 680dda802393ef1513a8a84a353dfc2ecfacacb2 (diff) | |
download | android-node-v8-44efd66132f9f9058d7ead0547d9ab2d3e06b528.tar.gz android-node-v8-44efd66132f9f9058d7ead0547d9ab2d3e06b528.tar.bz2 android-node-v8-44efd66132f9f9058d7ead0547d9ab2d3e06b528.zip |
test: replace deprecated util.debug() calls
common.debug() is just util.debug() and emits a deprecation notice. Per
docs, use console.error() instead.
PR-URL: https://github.com/nodejs/node/pull/3082
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Diffstat (limited to 'test/parallel/test-http.js')
-rw-r--r-- | test/parallel/test-http.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-http.js b/test/parallel/test-http.js index daa746cdbe..ed040ca7f6 100644 --- a/test/parallel/test-http.js +++ b/test/parallel/test-http.js @@ -56,7 +56,7 @@ server.on('listening', function() { responses_recvd += 1; res.setEncoding('utf8'); res.on('data', function(chunk) { body0 += chunk; }); - common.debug('Got /hello response'); + console.error('Got /hello response'); }); setTimeout(function() { @@ -70,17 +70,17 @@ server.on('listening', function() { responses_recvd += 1; res.setEncoding('utf8'); res.on('data', function(chunk) { body1 += chunk; }); - common.debug('Got /world response'); + console.error('Got /world response'); }); req.end(); }, 1); }); process.on('exit', function() { - common.debug('responses_recvd: ' + responses_recvd); + console.error('responses_recvd: ' + responses_recvd); assert.equal(2, responses_recvd); - common.debug('responses_sent: ' + responses_sent); + console.error('responses_sent: ' + responses_sent); assert.equal(2, responses_sent); assert.equal('The path was /hello', body0); |