diff --git a/test/acceptance/export/kml.js b/test/acceptance/export/kml.js index 1e4b7b1e..a7a3c6e4 100644 --- a/test/acceptance/export/kml.js +++ b/test/acceptance/export/kml.js @@ -4,8 +4,6 @@ var server = require('../../../app/server')(); var assert = require('../../support/assert'); var querystring = require('querystring'); var libxmljs = require('libxmljs'); -var http = require('http'); -var server_utils = require('../../support/server_utils'); describe('export.kml', function() { @@ -225,48 +223,30 @@ it('KML format, unauthenticated, concurrent requests', function(done){ var concurrency = 4; var waiting = concurrency; - function onResponse(res) { - //console.log("Response started"); - res.body = ''; - //res.setEncoding('binary'); - res.on('data', function(chunk){ res.body += chunk; }); - res.on('end', function(){ - //console.log("Response ended"); - assert.equal(res.statusCode, 200, res.body); - assert.ok(res.body); - var snippet = res.body.substr(0, 5); - assert.equal(snippet, "