Skip to content

Commit

Permalink
make the breaking change more explicit in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Sep 28, 2016
1 parent 738f0c2 commit 1287b92
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"body": "^5.0.0",
"error": "^5.0.0",
"farmhash": "^1.2.0",
"hammock": "^1.1.1",
"hammock": "^2.0.1",
"metrics": "^0.1.8",
"node-uuid": "^1.4.3",
"toobusy-js": "^0.5.0",
Expand Down
11 changes: 9 additions & 2 deletions test/integration/proxy_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,11 @@ test('reroutes retry to remote', function t(assert) {
retrySchedule: [1]
}, function onRequest(err, res) {
assert.ifError(err, 'no error occurs');
assert.equal(res.body.toString(), 'rerouted', 'response from rerouted request is correct');
assert.equal(
res.body.toString('hex'),
new Buffer('rerouted').toString('hex'),
'response from rerouted request is correct'
);

cluster.destroy();
assert.end();
Expand Down Expand Up @@ -896,7 +900,10 @@ test('can serialize response body', function t(assert) {
assert.ifError(err);

assert.equal(resp.statusCode, 200);
assert.equal(resp.body.toString(), 'hello');
assert.equal(
resp.body.toString('hex'),
new Buffer('hello').toString('hex')
);

cluster.destroy();
assert.end();
Expand Down

0 comments on commit 1287b92

Please sign in to comment.