Skip to content

Commit 3588687

Browse files
committed
[test] Small update to proxy-table-test.js
1 parent 5715318 commit 3588687

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: test/proxy-table-test.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ vows.describe('node-http-proxy/proxy-table').addBatch({
7878
data = fs.readFileSync(routeFile),
7979
config = JSON.parse(data);
8080

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

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

94-
runner.startTargetServer(8103, that.output, function () {
93+
runner.startTargetServer(8103, 'hello dynamic.com', function () {
9594
request(options, that.callback);
9695
});
9796
});
9897
},
9998
"should receive 'hello dynamic.com'": function (err, res, body) {
100-
assert.equal(body, this.output);
99+
assert.equal(body, 'hello dynamic.com');
101100
}
102101
}
103102
}

0 commit comments

Comments
 (0)