Skip to content

Commit

Permalink
[test] Small update to proxy-table-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Mar 19, 2011
1 parent 5715318 commit 3588687
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/proxy-table-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ vows.describe('node-http-proxy/proxy-table').addBatch({
data = fs.readFileSync(routeFile),
config = JSON.parse(data);

this.output = 'hello dynamic.com';
config.router['dynamic.com'] = "127.0.0.1:8103"
fs.writeFileSync(routeFile, JSON.stringify(config));

Expand All @@ -91,13 +90,13 @@ vows.describe('node-http-proxy/proxy-table').addBatch({
}
};

runner.startTargetServer(8103, that.output, function () {
runner.startTargetServer(8103, 'hello dynamic.com', function () {
request(options, that.callback);
});
});
},
"should receive 'hello dynamic.com'": function (err, res, body) {
assert.equal(body, this.output);
assert.equal(body, 'hello dynamic.com');
}
}
}
Expand Down

0 comments on commit 3588687

Please sign in to comment.