From 23783495b36324c32b22529549d4527dd3eedea8 Mon Sep 17 00:00:00 2001 From: Eugene Mirotin Date: Mon, 24 Apr 2017 23:11:50 +0300 Subject: [PATCH] use sandbox.restore --- test/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/index.js b/test/index.js index f6fd462..8209ca2 100644 --- a/test/index.js +++ b/test/index.js @@ -71,12 +71,7 @@ describe('global-proxy', function() { }); afterEach(function() { - // would love to sandbox.reset(), but alas: no such thing - globalHttpAgent.addRequest.reset(); - globalHttpsAgent.addRequest.reset(); - http.Agent.prototype.addRequest.reset(); - net.createConnection.reset(); - tls.connect.reset(); + sandbox.reset(); }); after(function() {