Changed proxyServer and destiny to local variables.

This commit is contained in:
Jorge Leal 2014-12-15 07:06:02 +01:00 committed by Jarrett Cruger
parent c62610e8e4
commit 8a8a894092

View File

@ -379,9 +379,9 @@ describe('lib/http-proxy.js', function() {
target: 'ws://127.0.0.1:' + ports.source, target: 'ws://127.0.0.1:' + ports.source,
ws: true ws: true
}); });
proxyServer = proxy.listen(ports.proxy); var proxyServer = proxy.listen(ports.proxy);
var server = http.createServer(); var server = http.createServer();
destiny = io.listen(server); var destiny = io.listen(server);
function startSocketIo() { function startSocketIo() {
var client = ioClient.connect('ws://127.0.0.1:' + ports.proxy); var client = ioClient.connect('ws://127.0.0.1:' + ports.proxy);