From bbac1df463abac7484c6c10f22850fdd249e402e Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Thu, 17 Sep 2015 13:40:01 +0200 Subject: [PATCH] Moves acceptance test about statsd uncaugth exception to integration --- test/acceptance/ported/regressions.js | 33 ------------------- test/integration/profiler.js | 46 +++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 33 deletions(-) create mode 100644 test/integration/profiler.js diff --git a/test/acceptance/ported/regressions.js b/test/acceptance/ported/regressions.js index fa6330af..941ecb62 100644 --- a/test/acceptance/ported/regressions.js +++ b/test/acceptance/ported/regressions.js @@ -102,37 +102,4 @@ describe('regressions', function() { done(); }); }); - - // See https://github.com/CartoDB/Windshaft/issues/167 - it("#167 does not die on unexistent statsd host", function(done) { - var CustomOptions = _.clone(ServerOptions); - CustomOptions.statsd = _.clone(CustomOptions.statsd); - CustomOptions.statsd.host = 'whoami.vizzuality.com'; - CustomOptions.statsd.cacheDns = false; - var server = cartodbServer(CustomOptions); - server.req2params = CustomOptions.req2params; - server.setMaxListeners(0); - - var errors = []; - // We need multiple requests to make sure - // statsd_client eventually tries to send - // stats _and_ DNS lookup is given enough - // time (an interval is used later for that) - var numreq = 10; - var pending = numreq; - var completed = function(err) { - if ( err ) { - errors.push(err); - } - if ( ! --pending ) { - setTimeout(function() { - done(errors.length ? new Error(errors.join(',')) : null); - }, 10); - } - }; - var mapConfig = testClient.defaultTableMapConfig('test_table'); - for (var i=0; i