From 1f9dd5fd8ccc6f7c28b2b41b8d0bb6667ae70031 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Thu, 17 Sep 2015 17:14:32 +0200 Subject: [PATCH] re-enable nock after every suite --- test/support/test_helper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/support/test_helper.js b/test/support/test_helper.js index 3f8d605d..7c360d8d 100644 --- a/test/support/test_helper.js +++ b/test/support/test_helper.js @@ -63,7 +63,8 @@ function checkSurrogateKey(res, expectedKey) { after(function(done) { // restoring nock globally after each suite - nock.restore(); + nock.cleanAll(); + nock.enableNetConnect(); var expectedKeys = { 'rails:test_windshaft_cartodb_user_1_db:test_table_private_1': true,