From bfeea58268dd05ae71058a6e43818d0ae9285bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Tue, 22 May 2018 16:07:04 +0200 Subject: [PATCH] copyFrom metrics to statsd tests --- test/acceptance/copy-endpoints.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/acceptance/copy-endpoints.js b/test/acceptance/copy-endpoints.js index f5458145..847d741c 100644 --- a/test/acceptance/copy-endpoints.js +++ b/test/acceptance/copy-endpoints.js @@ -32,16 +32,6 @@ describe('copy-endpoints', function() { assert.equal(!!response.time, true); assert.strictEqual(response.total_rows, 6); - assert.ok(res.headers['x-sqlapi-profiler']); - const headers = JSON.parse(res.headers['x-sqlapi-profiler']); - assert.ok(headers.copyFrom); - const metrics = headers.copyFrom; - assert.equal(metrics.size, 57); - assert.equal(metrics.format, 'CSV'); - assert.equal(metrics.time, response.time); - assert.equal(metrics.total_rows, response.total_rows); - assert.equal(metrics.gzip, false); - done(); }); }); @@ -161,16 +151,6 @@ describe('copy-endpoints', function() { assert.equal(!!response.time, true); assert.strictEqual(response.total_rows, 6); - assert.ok(res.headers['x-sqlapi-profiler']); - const headers = JSON.parse(res.headers['x-sqlapi-profiler']); - assert.ok(headers.copyFrom); - const metrics = headers.copyFrom; - assert.equal(metrics.size, 57); - assert.equal(metrics.format, 'CSV'); - assert.equal(metrics.time, response.time); - assert.equal(metrics.total_rows, response.total_rows); - assert.equal(metrics.gzip, true); - done(); }); });