From 3588687874eb691fe59407a207d38efa418211d0 Mon Sep 17 00:00:00 2001 From: indexzero Date: Sat, 19 Mar 2011 13:48:45 -0500 Subject: [PATCH] [test] Small update to proxy-table-test.js --- test/proxy-table-test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/proxy-table-test.js b/test/proxy-table-test.js index df3179aa7..c9b378909 100644 --- a/test/proxy-table-test.js +++ b/test/proxy-table-test.js @@ -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)); @@ -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'); } } }