Skip to content

Commit

Permalink
use sandbox.restore
Browse files Browse the repository at this point in the history
  • Loading branch information
emirotin committed Apr 24, 2017
1 parent 978af45 commit 2378349
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 2378349

Please sign in to comment.