Skip to content

Commit

Permalink
[fix] Changed require('sys') to require('util') for compatibility wit…
Browse files Browse the repository at this point in the history
…h node v0.8
  • Loading branch information
blakmatrix committed Jun 23, 2012
1 parent e7bf2a2 commit e79d121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helpers/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var connect = require('connect'),
assert = require('assert'),
http = require('http'),
net = require('net'),
sys = require('sys');
util = require('util');

/**
* Test base port.
Expand Down Expand Up @@ -57,7 +57,7 @@ connect.Server.prototype.listen = function(){
if (expectedBody !== undefined) {
assert.equal(expectedBody,
res.body,
msg + ' response body of ' + sys.inspect(expectedBody) + ', got ' + sys.inspect(res.body));
msg + ' response body of ' + util.inspect(expectedBody) + ', got ' + util.inspect(res.body));
}
assert.equal(expectedStatus,
res.statusCode,
Expand Down

0 comments on commit e79d121

Please sign in to comment.