spec/server/middleware.spec.js
function () {
        this.addResult = function (event) {
            var fullUrl = event.homeURL + url;
            http.get(fullUrl, function (response) {
                var content = "";
                response.on("data", function (chunk) {
                    content += chunk;
                });
                response.on("end", function () {
                    callback(content);
                });
            });
        };
        this.checkFinished = function () {
            return false;
        };
        events.EventEmitter.call(this);
    }
function () {
        this.addResult = function (event) {
            var fullUrl = event.homeURL + url;
            http.get(fullUrl, function (response) {
                var content = "";
                response.on("data", function (chunk) {
                    content += chunk;
                });
                response.on("end", function () {
                    callback(content);
                });
            });
        };
        this.checkFinished = function () {
            return false;
        };
        events.EventEmitter.call(this);
    }
function ( ) { this . addResult = function ( event ) { var fullUrl = event . homeURL + url ; http . get ( fullUrl , function ( response ) { var content = "" ; response . on ( "data" , function ( chunk ) { content += chunk ; } ) ; response . on ( "end" , function ( ) { callback ( content ) ; } ) ; } ) ; } ; this . checkFinished = function ( ) { return false ; } ; events . EventEmitter . call ( this ) ; }
Add a fake campaign to get the slave URL
Add a fake campaign to get the slave URL